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.

A064361 Numbers k such that prime(k)^2 + k is prime.

This page as a plain text file.
%I A064361 #12 Jun 24 2018 18:32:25
%S A064361 1,2,4,12,18,22,30,42,52,82,84,126,142,174,178,180,186,192,198,216,
%T A064361 220,240,252,262,298,316,348,382,400,406,412,438,478,480,492,520,522,
%U A064361 532,546,576,604,610,630,700,730,744,784,790,832,840,852,862,904,916,940
%N A064361 Numbers k such that prime(k)^2 + k is prime.
%H A064361 Harry J. Smith, <a href="/A064361/b064361.txt">Table of n, a(n) for n = 1..1000</a>
%t A064361 Select[ Range[ 1000 ], PrimeQ[ Prime[ # ]^2 + # ] & ]
%o A064361 (PARI) j=[]; for(n=1,1500, if(isprime(prime(n)^2+n), j=concat(j,n))); j
%o A064361 (PARI) { n=0; for (m=1, 10^9, if (isprime(prime(m)^2 + m), write("b064361.txt", n++, " ", m); if (n==1000, break)) ) } \\ _Harry J. Smith_, Sep 12 2009
%K A064361 easy,nonn
%O A064361 1,2
%A A064361 _Jason Earls_, Sep 26 2001