naive prime? function