Here is the entire script for you,
A prime number is a natural Number greater than 1 that has no positive divisors other than 1 and itself. The first few prime numbers from 1 to 12 are 2, 3, 5, 7, 11.
You can even check the demo of the script in here:
Enjoy. Have a nice day!