[Golfing] First 20 Mersenne primes 02-10-2017, 03:05 PM
#1
I haven't written a code golf challenge forever, and since the obfuscation thread seems to be popular, I thought I might keep that theme going. If you're unfamiliar with code golfing, it's a competition for the shortest possible version of a program.
For this challenge, write a program to calculate the first 20 Mersenne prime numbers. Since M20 has a whopping 1332 digits, print the exponential equation (2^p-1) instead of its value.
I'm working on a solution in Ruby, will post when it's finished.
Edit: I'll give anyone who can make it fit in a signature (<=242 characters with code tags) 20 NSP.
For this challenge, write a program to calculate the first 20 Mersenne prime numbers. Since M20 has a whopping 1332 digits, print the exponential equation (2^p-1) instead of its value.
I'm working on a solution in Ruby, will post when it's finished.
Edit: I'll give anyone who can make it fit in a signature (<=242 characters with code tags) 20 NSP.
(This post was last modified: 02-10-2017, 10:52 PM by Inori.)
It's often the outcasts, the iconoclasts ... those who have the least to lose because they
don't have much in the first place, who feel the new currents and ride them the farthest.
don't have much in the first place, who feel the new currents and ride them the farthest.

















![[+]](https://sinister.li/images/modern/collapse_collapsed.png)




![[Image: p_237m2jx1.png]](http://c.top4top.net/p_237m2jx1.png)