I found this interesting sequence for primes:
$2+3=5 $
$7+11-5 = 13$
17 + 19 - 13 = 23
29 + 31 - 23 = 37
41 + 43 - 37 = 47
Unfornutaley, now the pattern breaks, but comes back:
primes = []
c = 0
for possiblePrime in range(2, 20000):
# Assume number is prime until shown it is not.
isPrime = True
for num in range(2, possiblePrime):
if possiblePrime % num == 0:
isPrime = False
break
if isPrime:
primes.append(possiblePrime)
for i in range(5, 1000, 3):
a = primes[i-2] + primes[i-1]
a = a - primes[i-3]
if a != primes[i]:
c = c+1
print (""+repr(primes[i-2]) + " + " + repr(primes[i-1]) +" - "+
repr(primes[i-3]) + " != " + repr(primes[i]))
else:
print("" + repr(primes[i - 2]) + " + " + repr(primes[i - 1]) + " - " + repr(primes[i - 3]) + " = " + repr(
primes[i]))
Are the infinitifly many of these tuples, for which $p_{n+1}+p_{n+2}−{p_n}=p_{n+3}$?
Kind regards