View Single Post
Old 2015-11-24, 14:15   #1
Ale
 
Nov 2015

52 Posts
Question This simple algorithm incomplete can only calculate prime numbers?

Ciao,


3 x 3 x 2 x 4 = 72 -1 = 71 (is a prime number)

now 5:

3 x 3 x 2 x 4 x 3 x 2 x 3 x 4 x 5 = 25920 -1 = 25919 (is a prime number)

.

now 6 :

3 x 3 x 2 x 4 x 3 x 2 x 3 x 4 x 5 x 3 x 2 x 4 x 3 x 4 x 5 x 6 = 223948800 -1 = 223948799 ( is a prime number)

ho isolato il
2 x 4


now 7 :


3 x 3 x 2 x 4 x 3 x 2 x 3 x 4 x 5 x 3 x 2 x 4 x 3 x 4 x 5 x 6 x 3 x 4 x 5 x 3 x 4 x 5 x 6 x 3 x 5 x 6 x 7 = 3047495270400000 -1 = 3047495270399999 ( is a prime number)

Do you understand the mechanism? then work to the 8 -9-10 ........ should be all primes larger.
Ale is offline   Reply With Quote