login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A062294 A B_2 sequence: a(n) is the smallest prime such that the pairwise sums of distinct elements are all distinct. 3
2, 3, 5, 7, 11, 17, 29, 47, 67, 83, 131, 163, 233, 307, 397, 443, 617, 727, 809, 941, 1063, 1217, 1399, 1487, 1579, 1931, 2029, 2137, 2237, 2659, 2777, 3187, 3659, 3917, 4549, 4877, 5197, 5471, 5981, 6733, 7207, 7349, 8039, 8291, 8543, 9283, 9689, 10037 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
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)
A062294_list = list(islice(A062294_gen(), 30)) # Chai Wah Wu, Sep 11 2023
CROSSREFS
Sequence in context: A113192 A077673 A071255 * A245879 A113016 A085136
KEYWORD
nonn,changed
AUTHOR
Labos Elemer, Jul 02 2001
EXTENSIONS
Edited, corrected and extended by Klaus Brockhaus, Sep 17 2007
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 25 05:35 EDT 2023. Contains 365582 sequences. (Running on oeis4.)