compute_coprime_factors

compute_coprime_factors#

mrinufft.trajectories.maths.primes.compute_coprime_factors(Nc, length, start=1, update=1)[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