+ 8
Challenge: Mersenne primes
Mersenne primes are prime numbers that are 1 less a power of 2. the exponent of the power must be a prime number, so a mersenne prime (n) satisfies this relation: n=2^p-1 (p is prime) task: write a code - in any language you prefer - that, once user provedes an input x finds all mersenne primes from 1 to x happy coding :)
14 Answers
+ 18
Another Beaut!
https://code.sololearn.com/W2qstlaONCZH/#html
+ 8
Fun fact!
The Largest prime no is also Mersenne prime
It is (2 ^ 74,207,281) − 1
It has 22,338,618 digits!!
+ 7
Check out mine....
https://code.sololearn.com/cXUglmPMIjm2/?ref=app
+ 6
Here's my try :)
https://code.sololearn.com/c4HNIz172oQY/?ref=app
+ 4
https://code.sololearn.com/cbd7t8ao2LFV/?ref=app
+ 3
Hello ! I wrote my code in Python and I think it's pretty fast. Here is my code :
https://code.sololearn.com/csMaTsZr6TSc/#py
+ 2
nice code, Antoine!
+ 2
Hello, I think I've got the purest algorithm :)
https://code.sololearn.com/W23pKl8Ih2Vb/#html
You can enter limit of a 2.5 billion with a waiting time of 20 seconds.
+ 1
whoa, nice code!
+ 1
https://code.sololearn.com/cGpAh9M3TSa1/#
Check out my version:)
0
Hi.Who know how save a commant in a web site with tags "input"?of curse with PHP or other languages.