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.

A125167 Numbers n such that the n-th prime + n-th nonprime is itself prime.

This page as a plain text file.
%I A125167 #9 Sep 21 2023 18:37:22
%S A125167 1,2,3,6,7,15,20,26,29,30,35,40,42,43,46,52,57,61,65,70,75,84,92,99,
%T A125167 100,102,105,125,139,140,144,149,154,164,171,179,183,197,202,214,218,
%U A125167 223,227,232,234,245,247,251,258,265,272,280,288,290,294,299,304,323,325
%N A125167 Numbers n such that the n-th prime + n-th nonprime is itself prime.
%H A125167 Harvey P. Dale, <a href="/A125167/b125167.txt">Table of n, a(n) for n = 1..1000</a>
%e A125167 The 15th prime is 47, while the 15th nonprime is 24. 47+24=71 which is itself prime. Similarly, the 30th prime is 113, while the 30th nonprime is 44. 113+44=157 which is prime.
%t A125167 Module[{nn=500,np,tbl},np=Select[Range[nn],!PrimeQ[#]&];tbl=Table[{n,np[[n]]+Prime[n]},{n,Length[ np]}];Select[tbl,PrimeQ[#[[2]]]&]][[;;,1]] (* _Harvey P. Dale_, Sep 21 2023 *)
%Y A125167 Cf. A000040, A018252, A022797.
%K A125167 easy,nonn
%O A125167 1,2
%A A125167 _Jason G. Wurtzel_, Nov 22 2006
%E A125167 More terms from _Klaus Brockhaus_, Nov 23 2006