OFFSET
1,1
COMMENTS
The only prime number is 83.
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
EXAMPLE
PROG
(Python)
from __future__ import division
from sympy import prevprime, nextprime, isprime
A287686_list, p2, q2, r2, r = [], 4, 9, 25, 5
while r < 10**6:
n = p2+q2+r2
m = n//3
pm, nm = prevprime(m), nextprime(m)
k = n - pm - nm
if isprime(m):
if m == k:
A287686_list.append(n)
else:
if nextprime(nm) == k or prevprime(pm) == k:
A287686_list.append(n)
s = nextprime(r)
p2, q2, r2, r = q2, r2, s**2, s # Chai Wah Wu, May 30 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, May 29 2017
STATUS
approved