Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A145710
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A145710 Number of primes among first 10^n primes that have first and last digits both equal 3 (not counting the prime 3). +0
5
0, 4, 32, 278, 2250, 18839, 162662, 1433999 (list; graph; listen)
OFFSET

1,2

EXAMPLE

a(2)= 4 because among first 10^2 primes (i.e., from 2 to 541), there are 4 primes with first and last digits equal 3, that are 313, 353, 373, and 383.

PROGRAM

(Other) UBASIC: 10 'leading-trailing digits 20 N=11:C=4:Q=1 30 'print 2; 3; 40 A=3:S=sqrt(N) 50 B=N\A 60 if B*A=N then 190 70 A=A+2 80 if A<=S then 50 90 R=str(N) 100 T=left(R, 2):X=val(T) 110 U=right(R, 1):Y=val(U) 120 if X=Y and X=1 then Aa=Aa+1 130 if X=Y and X=3 then Bb=Bb+1 140 if X=Y and X=7 then Cc=Cc+1 150 if X=Y and X=9 then Dd=Dd+1 160 C=C+1 170 'print C; N; X; Y; Aa; Bb; Cc; Dd 180 if C=10^Q then print C; N; Aa; Bb; Cc; Dd:Q=Q+1 190 N=N+2:goto 40

CROSSREFS

A145709 A145711 A145712 A145713

Sequence in context: A036725 A065089 A113329 this_sequence A110901 A000766 A047734

Adjacent sequences: A145707 A145708 A145709 this_sequence A145711 A145712 A145713

KEYWORD

more,nonn,base

AUTHOR

Enoch Haga (Enokh(AT)comcast.net), Oct 16 2008

EXTENSIONS

Edited and two more terms added by Max Alekseyev (maxale(AT)gmail.com), Sep 11 2009

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 16 17:18 EST 2009. Contains 170825 sequences.


AT&T Labs Research