The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A329857 Positive integers which can be represented as p*q - p - q where p and q are distinct odd primes. 0
7, 11, 19, 23, 31, 35, 39, 43, 47, 55, 59, 63, 71, 79, 83, 87, 91, 95, 103, 107, 111, 115, 119, 131, 139, 143, 155, 159, 163, 167, 175, 179, 183, 191, 199, 203, 207, 211, 215, 219, 223, 231, 239, 251, 259, 263, 271, 275, 279, 287, 295, 299, 311, 323, 327, 331, 335, 343, 347, 351, 355, 359 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MATHEMATICA
Select[Range[360], {} != Solve[p*q-p-q == # && p >q> 2, {p, q}, Primes] &] (* Giovanni Resta, Jan 16 2020 *)
PROG
(PARI) lim=1000; x=[]; forprime(p=3, lim/3, forprime(q=p+2, lim/3, if(setsearch(x, p*q-q-p), , x=setunion(x, [p*q-q-p])))); for(i=1, length(x), if(x[i]<(lim), print1(x[i], ", ")))
CROSSREFS
Cf. A037165 (a subsequence), A046388, A091305, A096345, A137367 (subsequence with twin primes), A218862.
Sequence in context: A195759 A130570 A106081 * A168489 A329979 A129899
KEYWORD
nonn,easy
AUTHOR
Craig J. Beisel, Nov 22 2019
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 May 30 15:08 EDT 2024. Contains 372968 sequences. (Running on oeis4.)