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.

A172096 Primes having no representation of the form prime(n)-+n.

This page as a plain text file.
%I A172096 #21 Mar 30 2012 18:52:38
%S A172096 13,17,23,31,41,47,53,59,61,67,71,73,89,97,103,107,109,131,137,151,
%T A172096 157,167,181,191,193,199,211,227,229,233,239,241,257,263,277,281,283,
%U A172096 293,311,313,317,331,337,347,353,359,367,379,389
%N A172096 Primes having no representation of the form prime(n)-+n.
%e A172096 13 is a term because it's prime and prime(n)+n < 13 for n <= 4 and > 13 for n > 4, and prime(n)-n < 13 for n <= 8 and > 13 for n > 8.
%t A172096 nn=100; p=Select[Union[Flatten[Table[Prime[n]+{-n,n}, {n,nn}]]], PrimeQ]; Complement[Prime[Range[PrimePi[p[[-1]]]]], p]
%Y A172096 Cf. A064270.
%K A172096 nonn
%O A172096 1,1
%A A172096 _Juri-Stepan Gerasimov_, Nov 21 2010
%E A172096 Corrected by _T. D. Noe_, Nov 21 2010