Primality by trial division: Difference between revisions
→OCaml: simplified & faster
Jazzedpineda (talk | contribs) (Add EasyLang) |
(→OCaml: simplified & faster) |
||
Line 2,899:
=={{header|OCaml}}==
<syntaxhighlight lang="ocaml">let is_prime n =
if n
then n land 2
else n land 1
=={{header|Octave}}==
|