Concatenate two primes is also prime: Difference between revisions
m
→{{header|Julia}}
(julia example) |
|||
Line 78:
isprime(n) && push!(found, n)
end
return sort!(unique(found))
end
foreach(p -> print(lpad(last(p), 5), first(p) % 16 == 0 ? "\n" : ""),
catprimes(100)
</lang>{{out}}<pre>
23 37 53 73 113 137 173 193 197 211 223 229 233 241 271 283
|