Primality by trial division: Difference between revisions

m
(→‎{{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]];
1,111

edits