Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
Print["powers of (x-1)"]
|
||||
(x - 1)^( Range[0, 7]) // Expand // TableForm
|
||||
Print["primes under 50"]
|
||||
poly[p_] := (x - 1)^p - (x^p - 1) // Expand;
|
||||
coefflist[p_Integer] := Coefficient[poly[p], x, #] & /@ Range[0, p - 1];
|
||||
AKSPrimeQ[p_Integer] := (Mod[coefflist[p] , p] // Union) == {0};
|
||||
Select[Range[1, 50], AKSPrimeQ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue