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.

A059323 Smaller term of closest safe prime pairs.

This page as a plain text file.
%I A059323 #12 Sep 08 2022 08:45:02
%S A059323 11,47,167,347,467,1307,2027,2447,4127,4787,5087,5387,5927,12527,
%T A059323 12647,15287,18947,28307,39107,39827,41507,44687,51827,63587,64007,
%U A059323 71987,73847,76367,76907,78467,79967,83207,118787,121547,143687,164987
%N A059323 Smaller term of closest safe prime pairs.
%H A059323 Amiram Eldar, <a href="/A059323/b059323.txt">Table of n, a(n) for n = 1..10000</a>
%F A059323 {x| both x and x+12 are safe primes}; Intersection(12+A005385, primes)
%e A059323 11 and 23 are consecutive safe primes but not consecutive primes; 467 and 479 are consecutive safe primes and consecutive primes as well. Both 11 and 467 are here.
%t A059323 seqQ[n_] := And @@ PrimeQ[{n, n+12, (n-1)/2, (n+11)/2}]; Select[Range[165000], seqQ] (* _Amiram Eldar_, Jan 13 2020 *)
%o A059323 (Magma) [p:p in PrimesUpTo(165000)| IsPrime(p+12) and IsPrime((p-1) div 2) and IsPrime( (p+11) div 2)]; // _Marius A. Burtea_, Jan 13 2020
%Y A059323 Cf. A005383, A033299.
%K A059323 nonn
%O A059323 1,1
%A A059323 _Labos Elemer_, Jan 26 2001
%E A059323 Offset corrected by _Amiram Eldar_, Jan 13 2020