kennedyCzar / n-th_monsien_number

find the n-th Monisen number. A number M is a Monisen number if M=2**P-1 and both M and P are prime numbers. For example, if P=5, M=2**P-1=31, 5 and 31 are both prime numbers, so 31 is a Monisen number. Put the 6-th Monisen number into a single text file and submit online.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

n-th_monsien_number

find the n-th Monisen number. A number M is a Monisen number if M=2P-1 and both M and P are prime numbers. For example, if P=5, M=2P-1=31, 5 and 31 are both prime numbers, so 31 is a Monisen number. Put the 6-th Monisen number into a single text file and submit online.

About

find the n-th Monisen number. A number M is a Monisen number if M=2**P-1 and both M and P are prime numbers. For example, if P=5, M=2**P-1=31, 5 and 31 are both prime numbers, so 31 is a Monisen number. Put the 6-th Monisen number into a single text file and submit online.

License:MIT License


Languages

Language:Python 100.0%