Crystalg::NumberTheory
Instance methods
carmichael(n)
Sourcedivisor(n)
Sourcegcd(a, b)
Sourcelcm(a, b)
Sourcemobius(n)
Sourcephi(n)
count the totatives of n that is the positive integers less than or equal to n that are relatively prime to n
phi_list(n)
Sourceprime?(n)
Sourceprime_factorize(n)
Sourcesieve_of_eratosthenes(n)
Source