Primality by trial division: Difference between revisions

→‎OCaml: exclude negative numbers
(→‎OCaml: simplified & faster)
(→‎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>
 
559

edits