Jump to content

Pan base non-primes: Difference between revisions

m
m (syntax highlighting fixup automation)
Line 186:
 
=={{header|Julia}}==
<syntaxhighlight lang="rubyjulia">using Primes
 
ispanbasecomposite(n) = (d = digits(n); all(b -> !isprime(evalpoly(b, d)), maximum(d)+1:max(10, n)))
4,105

edits

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