1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-12-08 00:45:29 +01:00
programming-challenges/challenges/is-prime-number
2020-09-12 21:29:46 +00:00
..
solutions docs: Update READMEs + fix scripts/create-solution.ts 2020-09-12 21:29:46 +00:00
input-output.json Add "is-prime-number" challenge 2020-07-05 22:20:45 +02:00
README.md Add "is-prime-number" challenge 2020-07-05 22:20:45 +02:00

is-prime-number

Created by @Divlo at 5 July 2020.

Instructions :

The function should return true if a given number is a prime number and false otherwise.

Note : A prime number is a natural integer which admits exactly two distinct positive divisors. (1 and itself). Example: 2, 3, 5, 7, 11, 13, 17, 19 ...

Examples :

See the input-output.json file for examples of input/output.