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.

A154831 Numbers n such that n^4-2 is prime.

This page as a plain text file.
%I A154831 #17 Sep 08 2022 08:45:40
%S A154831 3,7,11,13,21,29,39,41,43,49,53,59,73,83,85,87,95,99,101,119,129,141,
%T A154831 143,175,181,185,189,207,217,239,241,277,279,293,311,315,323,339,343,
%U A154831 363,367,371,375,381,389,409,421,433,435,451,473,483,497,503,507,515
%N A154831 Numbers n such that n^4-2 is prime.
%H A154831 Vincenzo Librandi, <a href="/A154831/b154831.txt">Table of n, a(n) for n = 1..1000</a>
%t A154831 lst={};Do[p=n^4-2;If[PrimeQ[p],AppendTo[lst,n]],{n,0,7!}];lst
%t A154831 Select[Range[600],PrimeQ[#^4-2]&] (* _Harvey P. Dale_, May 20 2012 *)
%o A154831 (Magma) [n: n in [1..500] | IsPrime(n^4-2)]; // _Vincenzo Librandi_, Nov 26 2010
%o A154831 (PARI) is(n)=isprime(n^4-2) \\ _Charles R Greathouse IV_, Jul 02 2013
%Y A154831 Cf. A028870, A038599.
%K A154831 nonn,easy
%O A154831 1,1
%A A154831 _Vladimir Joseph Stephan Orlovsky_, Jan 15 2009