/mersenne

Given a number p, calculates all Mersenne numbers of prime numbers between 2 and p. Prints if the Mersenne number is prime or, if not, its smallest prime factor

Primary LanguageC

mersenne

Given a number p, calculates all Mersenne numbers of prime numbers between 2 and p. Prints if the Mersenne number is prime or, if not, its smallest prime factor

execution

$ ./mersenne p