OFFSET
1,1
LINKS
Klaus Brockhaus, Table of n, a(n) for n = 1..3600
Eric Weisstein's World of Mathematics, B2-Sequence
PROG
(Python)
from itertools import islice
from sympy import nextprime
def A062294_gen(): # generator of terms
aset2, alist, k = set(), [], 0
while (k:=nextprime(k)):
bset2 = set()
for a in alist:
if (b:=a+k) in aset2:
break
bset2.add(b)
else:
yield k
alist.append(k)
aset2.update(bset2)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jul 02 2001
EXTENSIONS
Edited, corrected and extended by Klaus Brockhaus, Sep 17 2007
STATUS
approved