Created
December 17, 2013 08:52
-
-
Save ozselgin/8001970 to your computer and use it in GitHub Desktop.
php prime benchmarks
This file contains hidden or 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 | |
$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