OFFSET
1,1
COMMENTS
Up to 10^n this sequence has 8, 95, 916, 8871, 86974, 858055, 8494293, 84319349, 838308086, ... terms. The lower density is of this sequence is greater than 0.59368 (see Pintz), but seems to be less than 1; can this be proved? Charles R Greathouse IV, Sep 01 2015
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
J. Pintz, A note on Romanov's constant, Acta Mathematica Hungarica 112:1-2 (2006), pp. 1-14.
MATHEMATICA
nmax = 1000;
S = Select[Range[nmax], Max[FactorInteger[#][[All, 1]]] <= 3 &];
A081308[n_] := Count[TakeWhile[S, # < n &], s_ /; PrimeQ[n - s]];
Select[Range[nmax], A081308[#] > 0 &] (* Jean-François Alcover, Oct 13 2021 *)
PROG
(Haskell)
a081310 n = a081310_list !! (n-1)
a081310_list = filter ((== 0) . a081308) [1..]
-- Reinhard Zumkeller, Jul 04 2012
(PARI) is(n)=for(i=0, logint(n, 3), my(k=3^i); while(k<n, if(isprime(n-k), return(1)); k<<=1)); 0 \\ Charles R Greathouse IV, Sep 01 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Mar 17 2003
STATUS
approved
