Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Revision History for A076623

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Total number of left truncatable primes (without zeros) in base n.
(history; published version)
#37 by N. J. A. Sloane at Thu Apr 28 13:39:09 EDT 2022
STATUS

proposed

approved

#36 by Michel Marcus at Thu Apr 28 01:50:03 EDT 2022
STATUS

editing

proposed

Discussion
Thu Apr 28
07:15
Michael S. Branicky: Looks good.
#35 by Michel Marcus at Thu Apr 28 01:49:49 EDT 2022
COMMENTS

Approximation of a(b) by (PARI) code: l(b)=c=b*(b-1)/log(b)/eulerphi(b);\ return(floor((primepi(b)-omega(b))*exp(c)/c)); - _Robert Gerbicz_, Nov 02 2008

PROG

(PARI code from Robert Gerbicz, Oct 31 2008)

(PARI)

L=M; A=vector(L, i, B[i])); return(ct) \\ _Robert Gerbicz_, Oct 31 2008

KEYWORD

nonn,base,more,changed

EXTENSIONS

Correction of a(18) and approximation for a(n). - _corrected by _Robert Gerbicz_, Nov 02 2008

STATUS

proposed

editing

Discussion
Thu Apr 28
01:50
Michel Marcus: ok ?
#34 by Michael S. Branicky at Wed Apr 27 20:22:41 EDT 2022
STATUS

editing

proposed

#33 by Michael S. Branicky at Wed Apr 27 20:22:15 EDT 2022
EXTENSIONS

a(24) - a(29) from Martin Fuller, Nov 24 2008

#32 by Michael S. Branicky at Wed Apr 27 20:21:09 EDT 2022
COMMENTS

a(24) = 1052029701 based on strong BPSW pseudoprimes. Other terms up to a(29) use proved primes. - Martin Fuller, Nov 24 2008

LINKS

I. O. Angell, I. O. and H. J. Godwin, H. J., <a href="http://dx.doi.org/10.1090/S0025-5718-1977-0427213-2">On Truncatable Primes</a>, Math. Comput. 31, 265-267, 1977.

Michael S. Branicky, <a href="/A076623/a076623.py.txt">String-based Python Program</a>

Michael S. Branicky, <a href="/A076623/a076623.py.txt">String-based Python Program</a>

#31 by Michael S. Branicky at Wed Apr 27 20:19:51 EDT 2022
LINKS

Michael S. Branicky, <a href="/A076623/a076623.py.txt">String-based Python Program</a>

PROG

(Python) # works for all n; link has faster string-based version for n < 37

from sympy import isprime, primerange

from sympy.ntheory.digits import digits

def fromdigits(digs, base):

return sum(d*base**i for i, d in enumerate(digs))

def a(n):

prime_lists, an = [(p, ) for p in primerange(1, n)], 0

while len(prime_lists) > 0:

an += len(prime_lists)

candidates = set(p+(d, ) for p in prime_lists for d in range(1, n))

prime_lists = [c for c in candidates if isprime(fromdigits(c, n))]

return an

print([a(n) for n in range(2, 12)]) # Michael S. Branicky, Apr 27 2022

STATUS

approved

editing

#30 by Jon E. Schoenfield at Fri Aug 07 02:45:11 EDT 2015
STATUS

editing

approved

#29 by Jon E. Schoenfield at Fri Aug 07 02:45:09 EDT 2015
COMMENTS

a(24)=1052029701 based on strong BPSW pseudoprimes. Other terms up to a(29) use proved primes. [From _- _Martin Fuller_, Nov 24 2008]

MAPLE

for b from 2 do print(b, A076623(b)) ; end do: # _R. J. Mathar, _, Jun 01 2011

STATUS

approved

editing

#28 by N. J. A. Sloane at Thu Apr 03 11:35:04 EDT 2014
COMMENTS

a(24)=1052029701 based on strong BPSW pseudoprimes. Other terms up to a(29) use proved primes. [From _Martin Fuller (martin_n_fuller(AT)btinternet.com), _, Nov 24 2008]

EXTENSIONS

a(12) corrected from 170051 to 170053 by _Martin Fuller (martin_n_fuller(AT)btinternet.com), _, Oct 31 2008

a(24) - a(29) from _Martin Fuller (martin_n_fuller(AT)btinternet.com), _, Nov 24 2008

Discussion
Thu Apr 03
11:35
OEIS Server: https://oeis.org/edit/global/2137