1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-11-09 22:08:58 +01:00
programming-challenges/challenges/is-prime-number/README.md

14 lines
425 B
Markdown
Raw Normal View History

2020-07-05 22:20:45 +02:00
# is-prime-number
2023-07-02 17:28:54 +02:00
Created by [@theoludwig](https://github.com/theoludwig) on 5 July 2020.
2020-07-05 22:20:45 +02:00
2020-12-09 12:42:12 +01:00
## Instructions
2020-07-05 22:20:45 +02:00
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 ...
2020-12-09 12:42:12 +01:00
## Examples
2020-07-05 22:20:45 +02:00
See the `test` folder for examples of input/output.