Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
IsPrime[n_Integer] := Block[{},
|
||||
If[n <= 1, Return[False]];
|
||||
If[n == 2, Return[True]]; If[Mod[n, 2] == 0, Return[False]];
|
||||
For[k = 3, k <= Sqrt[n], k += 2, If[Mod[n, k] == 0, Return[False]]];
|
||||
Return[True]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue