Jump to content

Fermat pseudoprimes: Difference between revisions

m
m (syntax highlighting fixup automation)
Line 191:
 
=={{header|Julia}}==
<syntaxhighlight lang="rubyjulia">using Primes
 
ispseudo(n, base) = !isprime(n) && BigInt(base)^(n - 1) % n == 1
4,105

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.