Concatenate two primes is also prime: Difference between revisions

m
(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) |> unique |> sort |> enumerate)
</lang>{{out}}<pre>
23 37 53 73 113 137 173 193 197 211 223 229 233 241 271 283
4,105

edits