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.

A236477 Numbers k such that k^3 - k + 1 is prime.

This page as a plain text file.
%I A236477 #14 Mar 01 2020 06:49:01
%S A236477 2,4,6,7,10,11,14,15,19,21,22,25,26,31,35,39,41,42,45,50,52,54,57,62,
%T A236477 75,77,84,85,87,90,92,95,99,101,102,106,111,116,120,125,129,130,132,
%U A236477 134,136,139,140,141,147,155,167,169,176,189,195,202,221,230,237
%N A236477 Numbers k such that k^3 - k + 1 is prime.
%H A236477 Daniel Starodubtsev, <a href="/A236477/b236477.txt">Table of n, a(n) for n = 1..10000</a>
%e A236477 26^3 - 26 + 1 = 17551 is prime. So 26 is a member of this sequence.
%t A236477 Select[Range[250],PrimeQ[#^3-#+1]&] (* _Harvey P. Dale_, Dec 06 2017 *)
%o A236477 (Python)
%o A236477 import sympy
%o A236477 from sympy import isprime
%o A236477 {print(n) for n in range(10**3) if isprime(n**3-n+1)}
%o A236477 (PARI)
%o A236477 s=[]; for(n=1, 500, if(isprime(n^3-n+1), s=concat(s, n))); s \\ _Colin Barker_, Jan 27 2014
%Y A236477 Cf. A049407, A126421, A236478.
%K A236477 nonn
%O A236477 1,1
%A A236477 _Derek Orr_, Jan 26 2014
%E A236477 More terms from _Colin Barker_, Jan 27 2014