Skip to content

Instantly share code, notes, and snippets.

@ozselgin
Created December 17, 2013 08:52
Show Gist options
  • Save ozselgin/8001970 to your computer and use it in GitHub Desktop.
Save ozselgin/8001970 to your computer and use it in GitHub Desktop.
php prime benchmarks
<?php
$previousPrime = 2000000000;
for($i=0; $i<1000000; $i++){
$prime = gmp_nextprime ($previousPrime);
echo gmp_strval($prime) . PHP_EOL;
$previousPrime = $prime;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment