H0

Is a positive integer prime?

Input: A positive integer n, in the range [1, 231)

Output: A standard true value if n is prime, and a standard false value otherwise.

Examples:

7   ->True
1007->False
1   ->False

Languages, by Score

Languages, by Name


Back to Hole List

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License