Skip to content

Latest commit

 

History

History

wilson-primes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Wilson primes satisfy the following condition. Let P represent a prime number.

Then ((P-1)! + 1) / (P * P) should give a whole number.

Your task is to create a function that returns true if the given number is a Wilson prime.