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.

A141526 Numbers n such that prime(n)+n^3 is prime.

This page as a plain text file.
%I A141526 #13 Feb 20 2017 00:26:50
%S A141526 1,2,4,6,24,34,36,66,78,86,96,100,104,114,116,120,130,144,152,156,162,
%T A141526 182,204,228,230,258,264,276,324,356,386,394,402,416,420,428,434,444,
%U A141526 480,520,552,582,584,606,612,632,666,678,680,696,726,728,730,732,794
%N A141526 Numbers n such that prime(n)+n^3 is prime.
%H A141526 G. C. Greubel, <a href="/A141526/b141526.txt">Table of n, a(n) for n = 1..10000</a>
%t A141526 lst={};Do[p=Prime[n];If[PrimeQ[p+n^3], AppendTo[lst, n]], {n, 10^3}];lst (* _Vladimir Joseph Stephan Orlovsky_, Sep 08 2008 *)
%o A141526 (PARI) j=[]; for(n=1,3000, if(isprime(prime(n)+n^3), j=concat(j, n))); j
%K A141526 nonn
%O A141526 1,2
%A A141526 _Alexander R. Povolotsky_, Aug 11 2008
%E A141526 Offset set to 1 by _Michel Marcus_, Feb 04 2015