Created
August 7, 2017 16:34
-
-
Save markheramis/33ee49dad2a4e9808b91fb1585f4bcf1 to your computer and use it in GitHub Desktop.
Generate the first 12 Mersenne Number Generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$count = 12; | |
for($i=1; $i < $count; $i++){ | |
print( pow(2,$i) - 1) . ' | '; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment