naive with sqrt(n) limit prime? function