mirror of
				https://github.com/theoludwig/programming-challenges.git
				synced 2025-09-11 23:11:21 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			426 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			426 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
# is-prime-number
 | 
						|
 | 
						|
Created by [@Divlo](https://github.com/Divlo) on 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.
 |