Coding tools
Learn & compete
Community
Practice
Trial division up to sqrt(n).
Constraints
Example
>>> is_prime(17) True >>> is_prime(4) False
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints