Cuban primes: Difference between revisions
m
→{{header|AppleScript}}: Typo.
(Added AppleScript.) |
m (→{{header|AppleScript}}: Typo.) |
||
Line 139:
<syntaxhighlight lang="applescript">on isPrime(n)
-- Most of the numbers tested in this script will be huge
-- and none will
(* if (n < 7) then return (n is in {2, 3, 5})
if ((n mod 2) * (n mod 3) * (n mod 5) = 0) then return false *)
|