Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 514 Bytes

check_for_prime_numbers.md

File metadata and controls

20 lines (13 loc) · 514 Bytes

Check for prime numbers

Source: Codewars

In this kata you will create a function to check a non-negative input to see if it is a prime number.

The function will take in a number and will return True if it is a prime number and False if it is not.

A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself.

Examples(input --> output)

0 --> false
1 --> false
2 --> true
11 --> true
12 --> false