Last active
January 6, 2019 23:46
-
-
Save mmenavas/53e98ff5e3e905e0aa8609e10cb03290 to your computer and use it in GitHub Desktop.
Prime Numbers
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 | |
/** | |
* Usage: | |
* Run the command below to see a list of all prime numbers up to 1000. | |
* php main.php 1000 | |
*/ | |
include_once("./PrimeNumbers.php"); | |
if (isset($argv[1])) { | |
PrimeNumbers::printPrimeNumbers($argv[1]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment