Make Math Work
Prime Numbers

Usage: PrimeNumbers First_Prime, Last_Prime

The Prime Numbers command will calculate all of the prime numbers between First_Prime and Last_Prime and display them in a list. For example, to see all of the prime numbers between 3 and 103, enter PrimeNumbers 3, 103 and click the Calculate button.

If either First_Prime or Last_Prime is not a prime number, the first prime number greater than First_Prime or the greatest prime number less than Last_Prime will be used. For example, PrimeNumbers 33, 88 will return a list starting with 37 and ending with 83 since 37 is the first prime number greater than 33 and 83 is the greatest prime number less than 88.

Note: Requesting a large list of prime numbers can take a long time to calculate. Requesting the prime numbers between 2 and one million could take several minutes.

The command Primes can be used as a shorter alternative to the command PrimeNumbers.

Examples:
PrimeNumbers 2, 53 returns a list of the prime numbers between 2 and 53.
PrimeNumbers 100, 200 returns a list of the prime numbers between 100 and 200.

 Try It   
 Enter the first prime number:  
 Enter the last prime number: