Primality by trial division: Difference between revisions
m
→{{header|Mathematica}}
(→{{header|XPL0}}: Fix bug. Intrinsic 'code' declarations are now automatic.) |
|||
Line 2,272:
true</lang>
=={{header|Mathematica}}/{{header|Wolfram Language}}==
<lang mathematica>IsPrime[n_Integer] := Block[{},
If[n <= 1, Return[False]];
|