Primality by trial division: Difference between revisions

Content deleted Content added
Querfeld (talk | contribs)
→‎OCaml: simplified & faster
Querfeld (talk | contribs)
→‎OCaml: exclude negative numbers
Line 2,903:
in
if n < 5
then n landlor 21 <>= 03
else n land 1 <> 0 && n mod 3 <> 0 && test 5</syntaxhighlight>