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 | |
| /** | |
| * Test whether a given function, secret(), is additive [secret(x+y) = secret(x) + secret(y)], | |
| * for all combinations x and y, where x and y are all prime numbers less than the number passed | |
| * via the command-line argument. | |
| * | |
| * To execute: | |
| * php secretPrimes.php $max | |
| * where $max is an integer argument |