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.

A107771 Numbers n such that 2*n + 5 and 5*n + 2 are primes.

This page as a plain text file.
%I A107771 #7 Apr 03 2020 01:50:11
%S A107771 0,1,3,7,9,13,19,21,27,31,33,39,51,61,63,67,73,79,93,97,109,111,117,
%T A107771 123,129,151,171,177,181,187,189,217,219,237,243,247,259,297,313,319,
%U A107771 321,327,339,357,369,373,403,417,427,441,453,457,471,483,489,493,523,529
%N A107771 Numbers n such that 2*n + 5 and 5*n + 2 are primes.
%C A107771 Union of A089038 and A111223.
%C A107771 Except for the first, all terms == 1 or 3 (mod 6). - _Robert Israel_, Apr 02 2020
%H A107771 Robert Israel, <a href="/A107771/b107771.txt">Table of n, a(n) for n = 1..10000</a>
%p A107771 select(n -> isprime(2*n+5) and isprime(5*n+2), [0,seq(i,i=1..1000,2)]); # _Robert Israel_, Apr 02 2020
%t A107771 Reap[Do[If[PrimeQ[2*n+5]&&PrimeQ[5*n+2],Sow[n]],{n,0,600}]][[2,1]]
%Y A107771 Cf. A089038, A111223.
%K A107771 nonn
%O A107771 1,3
%A A107771 _Zak Seidov_, Mar 31 2006