Prime Triangle


Here is a much more optimised version, with fewer lines, replacing the TRUE and FALSE keywords with their numeric values, and reducing the number of tests for prime numbers to the square root of the number being tested, instead of half the number.



Click here to return to Prime Triangle