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