compute_coprime_factors#

mrinufft.trajectories.maths.primes.compute_coprime_factors(Nc: int, length: int, start: int = 1, update: int = 1) list[int][source]#

Compute a list of coprime factors of Nc.

Parameters:
  • Nc (int) – Number to factorize.

  • length (int) – Number of coprime factors to compute.

  • start (int, optional) – First number to check. The default is 1.

  • update (int, optional) – Increment between two numbers to check. The default is 1.

Returns:

List of coprime factors of Nc.

Return type:

list[int]