Showing posts with label Prime Number Calculation. Show all posts
Showing posts with label Prime Number Calculation. Show all posts

Saturday, December 31, 2011

Fast Calculation Of Prime Numbers

1. Take any number which is a multiple of 9 starting at zero ( 0 ) ( 0, 9, 18, 27, etc. ) .

2. Add 1, 2, 4, 5. 7, 8 to the number so that the first column of the number ends in ( 1, 3, 7, 9 ) . For example ( 11, 13, 17, 19 ) .

3. Test to see if it is a prime . A prime number is defined as being only evenly divisible by itself and 1.