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.

A066895 Numbers k such that k divides prime(k) + prime(k+1).

This page as a plain text file.
%I A066895 #27 Jul 02 2025 19:36:40
%S A066895 1,2,3,6,10,16,30,120,182,439,1058,4122,25356,40086,40090,40114,40120,
%T A066895 63416,100347,159222,251708,399930,637328,637336,637340,1014636,
%U A066895 2582486,4124468,6592708,6592728,10553440,10553445,10553829,16899052,27067138,179992932
%N A066895 Numbers k such that k divides prime(k) + prime(k+1).
%C A066895 Larger terms computed with the help of Kim Walisch's primecount. a(69) > 5*10^14. - _Giovanni Resta_, Jul 14 2018
%H A066895 Giovanni Resta, <a href="/A066895/b066895.txt">Table of n, a(n) for n = 1..68</a>
%t A066895 Select[Range[10^5], Mod[Prime[#] + Prime[# + 1], #] == 0 &] (* _Giovanni Resta_, Jul 14 2018 *)
%o A066895 (PARI) {a=2;b=2;for(n=1,10^6,b=nextprime(b+1);(a+b)%n==0&print(n);a=b)} \\ _Zak Seidov_, Dec 28 2010
%o A066895 (Magma) S:=[]; p:=2; q:=p; for n in [1..10^7] do q:=NextPrime(q); if (p+q) mod n eq 0 then Append(~S, n); end if; p:=q; end for; S; // _Klaus Brockhaus_, Dec 28 2010
%K A066895 nonn
%O A066895 1,2
%A A066895 _Benoit Cloitre_, Jan 24 2002
%E A066895 Additional terms provided by _Harvey P. Dale_, Jan 28 2002
%E A066895 More terms from _David W. Wilson_, Feb 20 2002
%E A066895 Merged with an entry submitted by _Zak Seidov_, Dec 28 2010
%E A066895 a(35)-a(36) from _Giovanni Resta_, Jul 14 2018