Skip to content

Instantly share code, notes, and snippets.

@markheramis
Created August 7, 2017 16:34
Show Gist options
  • Save markheramis/33ee49dad2a4e9808b91fb1585f4bcf1 to your computer and use it in GitHub Desktop.
Save markheramis/33ee49dad2a4e9808b91fb1585f4bcf1 to your computer and use it in GitHub Desktop.
Generate the first 12 Mersenne Number Generator
<?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