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.

Showing 1-3 of 3 results.

A249676 Terms k of A249667 such that k-A151799(k) = A151800(k)-k.

Original entry on oeis.org

6, 30, 50, 144, 300, 560, 610, 650, 660, 714, 780, 810, 816, 870, 1120, 1176, 1190, 1806, 2130, 2470, 2490, 2550, 2922, 3030, 3240, 3330, 3390, 3480, 3600, 3620, 3840, 4266, 4368, 5796, 5850, 6270, 6786, 6954, 7074, 7710, 8280, 9400, 9990, 10146, 10350, 10380, 10530, 10660, 11064
Offset: 1

Views

Author

Antonio Roldán, Dec 03 2014

Keywords

Examples

			610 is in A249667: the least prime>610 is 613, and 610+613=1223 is prime; the largest prime<610 is 607, and 610+607=1217 is prime. Also, 613-610=610-607=3, then 610 is in the current sequence.
		

Crossrefs

Programs

  • PARI
    {for(i=3,2*10^4,m=nextprime(i+1);k=i+m;n=precprime(i-1);q=i+n;if(isprime(k)&&isprime(q)&&m-i==i-n,print1(i,", ")))}

A249666 Numbers n such that the sum of n and the largest primeA151799(n)) is prime.

Original entry on oeis.org

3, 4, 6, 10, 12, 16, 22, 24, 30, 36, 42, 46, 50, 54, 56, 66, 70, 76, 78, 84, 90, 92, 100, 114, 116, 120, 126, 130, 132, 142, 144, 156, 160, 170, 174, 176, 180, 186, 192, 196, 202, 210, 220, 222, 226, 232, 234, 240, 246, 250, 252, 276, 280, 282, 286, 288, 294, 300, 306, 310, 324
Offset: 1

Views

Author

Antonio Roldán, Dec 03 2014

Keywords

Examples

			66 is in the sequence because A151799(66)=61, and 66+61=127 is prime.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[400],PrimeQ[#+NextPrime[#,-1]]&] (* Harvey P. Dale, Aug 04 2019 *)
  • PARI
    {for(i=3,10^3,k=i+precprime(i-1);if(isprime(k),print1(i,", ")))}

A249624 Numbers n such that the sum of n and the least prime>n (A151800(n)) is prime.

Original entry on oeis.org

0, 1, 2, 6, 8, 14, 18, 20, 24, 30, 34, 36, 38, 48, 50, 54, 64, 68, 78, 80, 84, 94, 96, 98, 104, 110, 114, 124, 132, 134, 138, 144, 154, 156, 164, 174, 182, 188, 198, 208, 210, 216, 220, 228, 230, 248, 252, 258, 260, 270, 284, 294, 300, 306, 308, 314, 322, 328, 330, 336, 344, 360
Offset: 1

Views

Author

Antonio Roldán, Dec 03 2014

Keywords

Examples

			50 is in the sequence because A151800(50)=53, and 50+53=103 is prime.
		

Crossrefs

Programs

  • PARI
    {for(i=0,10^3,k=i+nextprime(i+1);if(isprime(k),print1(i,", ")))}
Showing 1-3 of 3 results.