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.

A236761 Numbers n such that n^4-n+1 is prime.

This page as a plain text file.
%I A236761 #10 Jun 03 2015 17:44:50
%S A236761 3,6,9,13,16,18,19,24,33,39,43,45,46,60,63,64,69,75,78,79,85,91,94,
%T A236761 105,106,108,109,115,121,129,138,174,175,183,195,198,205,210,220,249,
%U A236761 250,276,289,295,300,309,313,318,324,343,346,348
%N A236761 Numbers n such that n^4-n+1 is prime.
%e A236761 115^4 - 115 + 1 = 174900511 is prime. Thus, 115 is a member of this sequence.
%t A236761 Select[Range[400],PrimeQ[#^4-#+1]&] (* _Harvey P. Dale_, Jun 03 2015 *)
%o A236761 (Python)
%o A236761 import sympy
%o A236761 from sympy import isprime
%o A236761 {print(n) for n in range(10**3) if isprime(n**4-n+1)}
%o A236761 (PARI)
%o A236761 s=[]; for(n=1, 400, if(isprime(n^4-n+1), s=concat(s, n))); s \\ _Colin Barker_, Jan 31 2014
%Y A236761 Cf. A049408, A126424.
%K A236761 nonn
%O A236761 1,1
%A A236761 _Derek Orr_, Jan 30 2014