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.

A340770 Indices k of prime numbers such that prime(k)-2 and prime(k)^2-2 are both prime numbers.

This page as a plain text file.
%I A340770 #16 Feb 19 2021 20:33:56
%S A340770 3,4,6,8,14,18,27,34,65,82,99,141,172,177,191,202,216,226,319,333,337,
%T A340770 445,470,476,496,552,559,564,578,602,637,672,829,850,863,871,949,1005,
%U A340770 1065,1075,1190,1199,1231,1239,1306,1329,1446,1450,1529,1619,1635,1643
%N A340770 Indices k of prime numbers such that prime(k)-2 and prime(k)^2-2 are both prime numbers.
%C A340770 This sequence is a subsequence of A107770.
%H A340770 François Marques, <a href="/A340770/b340770.txt">Table of n, a(n) for n = 1..10000</a>
%e A340770 6 is in the sequence since prime(6)=13 and 13-2=11 and 13^2-2=167 are both prime numbers.
%o A340770 (PARI) lista(n) = {my(l=List,k=1); while(#l<n,k++; if(isprime(prime(k)-2) && isprime(prime(k)^2-2),listput(l,k))); return(l)};
%Y A340770 Cf. A107770, A292201.
%K A340770 nonn,easy
%O A340770 1,1
%A A340770 _François Marques_, Jan 20 2021