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.

A236476 Primes p such that p^3 + p - 1 is prime.

This page as a plain text file.
%I A236476 #13 Mar 01 2020 06:48:47
%S A236476 3,7,43,73,103,109,127,139,151,199,223,241,283,313,367,379,421,541,
%T A236476 631,661,733,739,751,769,829,991,1117,1129,1201,1231,1249,1297,1303,
%U A236476 1429,1471,1663,1669,1693,1699,1741,1789,1867,1933
%N A236476 Primes p such that p^3 + p - 1 is prime.
%C A236476 Primes in the sequence A236475.
%H A236476 Daniel Starodubtsev, <a href="/A236476/b236476.txt">Table of n, a(n) for n = 1..10000</a>
%e A236476 241 is prime and 241^3 + 241 - 1 = 13997761 is prime.
%o A236476 (Python)
%o A236476 import sympy
%o A236476 from sympy import isprime
%o A236476 {print(n) for n in range(10**4) if isprime(n) and isprime(n**3+n-1)}
%o A236476 (PARI)
%o A236476 s=[]; forprime(p=2, 2000, if(isprime(p^3+p-1), s=concat(s, p))); s \\ _Colin Barker_, Jan 27 2014
%Y A236476 Cf. A236475.
%K A236476 nonn
%O A236476 1,1
%A A236476 _Derek Orr_, Jan 26 2014