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.

A356271 Prime numbers in the sublists defined in A348168 that contain a single prime.

This page as a plain text file.
%I A356271 #20 Apr 25 2024 13:53:31
%S A356271 2,3,5,7,23,53,89,157,173,211,293,353,359,409,449,683,691,839,919,977,
%T A356271 983,1039,1069,1103,1109,1201,1223,1237,1283,1327,1381,1439,1459,1511,
%U A356271 1613,1627,1637,1709,2039,2099,2179,2213,2221,2243,2251,2273,2447,2633,2917
%N A356271 Prime numbers in the sublists defined in A348168 that contain a single prime.
%C A356271 It seems that lim_{n->oo} n/primepi(a(n)) = 0.102 approximately.
%o A356271 (Python)
%o A356271 from sympy import nextprime; R = [2]; p0 = 2
%o A356271 while len(R) < 50:
%o A356271     p1 = nextprime(p0); p = nextprime(p1); g1 = p - p1
%o A356271     if g1 >= p1 - p0: R.append(p1)
%o A356271     else:
%o A356271         while p - p1 <= g1: p1 = p; p = nextprime(p)
%o A356271     p0 = p1
%o A356271 print(*R, sep = ', ')
%Y A356271 Cf. A348168.
%K A356271 nonn
%O A356271 1,1
%A A356271 _Ya-Ping Lu_, Aug 01 2022