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.

A157978 Primes p such that 4*p - 3 is also a prime.

This page as a plain text file.
%I A157978 #12 Sep 08 2022 08:45:42
%S A157978 2,5,11,19,23,29,59,61,71,79,89,101,103,109,113,131,149,151,191,193,
%T A157978 233,239,263,283,313,331,353,359,373,389,401,431,439,479,499,521,523,
%U A157978 541,569,571,599,619,631,653,659,673,683,701,709,739,743,751,761,773,829
%N A157978 Primes p such that 4*p - 3 is also a prime.
%H A157978 Vincenzo Librandi, <a href="/A157978/b157978.txt">Table of n, a(n) for n = 1..3000</a>
%t A157978 q=3;lst={};Do[p=Prime[n];If[PrimeQ[(q+1)*p-q],AppendTo[lst,p]],{n,6!}];lst
%t A157978 Select[Prime[Range[1000]],PrimeQ[4 # - 3]&] (* _Vincenzo Librandi_, Feb 03 2014 *)
%o A157978 (Magma) [n: n in [0..2000] | IsPrime(n) and IsPrime(4*n - 3)]; // _Vincenzo Librandi_, Feb 03 2014
%Y A157978 Cf. A136082, A136083, A023213, A023221, A023235, A023240, A157974, A136083, A136084, A136085, A136086, A136087, A089440, A157975, A157976, A157977.
%K A157978 nonn,easy
%O A157978 1,1
%A A157978 _Vladimir Joseph Stephan Orlovsky_, Mar 10 2009