Created
April 9, 2012 12:45
-
-
Save dvberkel/2343197 to your computer and use it in GitHub Desktop.
Magma code to determine possible candidates for Brands scheme for the Mammon project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| p := 7; batchSize := 10; | |
| for index in [1..batchSize] do | |
| p := NextPrime(p); | |
| phi := EulerPhi(p); | |
| factors := Factorization(phi); | |
| primitiveCount := EulerPhi(phi); | |
| printf "%o, %o, %o\n", p, factors, primitiveCount; | |
| end for; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment