cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-1 of 1 results.

A241945 Indices n where both prime(n) + 2*prime(n+1) and 2*prime(n) + prime(n+1) are primes.

Original entry on oeis.org

2, 3, 6, 17, 27, 30, 48, 53, 57, 68, 94, 137, 138, 143, 156, 157, 248, 259, 269, 289, 296, 316, 360, 369, 402, 425, 429, 430, 432, 446, 474, 500, 522, 580, 596, 631, 656, 760, 777, 810, 828, 875, 906, 951, 994, 1154, 1163, 1233, 1273, 1338, 1346, 1352, 1378, 1381, 1385, 1391, 1402, 1422, 1436, 1495, 1552, 1602
Offset: 1

Views

Author

Zak Seidov, May 03 2014

Keywords

Examples

			n=2 is in the sequence because 3 + 2*5 = 13 and 5 + 2*3 = 11 are primes.
n=3 is in the sequence because 5 + 2*7 = 19 and 7 + 2*5 = 17 are primes.
n=6 is in the sequence because 17 + 2*13 = 43 and 13 + 2*17 = 47 are primes.
		

Crossrefs

Cf. A094104 (primes of form 2*p + q), A094105 (primes of form p + 2*q).

Programs

  • PARI
    isok(n) = my(p=prime(n), q=nextprime(p+1)); isprime(p+2*q) && isprime(2*p+q); \\ Michel Marcus, Jan 06 2019
Showing 1-1 of 1 results.