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!)
A109404 Numbers n such that sum of n-th and (n+1)-st semiprimes is a prime. 1
3, 5, 7, 8, 10, 11, 13, 22, 25, 27, 29, 37, 46, 51, 52, 76, 83, 86, 92, 104, 111, 113, 115, 123, 132, 140, 149, 190, 213, 218, 222, 233, 242, 274, 280, 281, 286, 298, 303, 307, 309, 336, 340, 346, 351, 379, 381, 395, 402, 415, 424, 444, 449, 463, 477, 478, 490 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
3 is OK because sp(3)=9, sp(3)=10 and 9+10=19 (prime); sp(n)=n-th semiprime.
MATHEMATICA
With[{semis=Partition[Select[Range[2000], PrimeOmega[#]==2&], 2, 1]}, Flatten[ Position[ semis, _?(PrimeQ[Total[#]]&), {1}, Heads->False]]] (* Harvey P. Dale, May 01 2014 *)
PROG
(PARI) lista(nn) = {vec = vector(nn, i, i); sp = select(i->(bigomega(i)==2), vec); for (i = 1, #sp-1, if (isprime(sp[i]+sp[i+1]), print1(i, ", ")); ); } \\ Michel Marcus, Oct 06 2013
CROSSREFS
Cf. A092191 = numbers n such that sum of n-th and (n+1)-st semiprimes is a semiprime.
Sequence in context: A257019 A071977 A183423 * A221056 A288467 A276224
KEYWORD
nonn
AUTHOR
Zak Seidov, Jun 27 2005
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 August 17 04:34 EDT 2024. Contains 375200 sequences. (Running on oeis4.)