Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A137238
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A137238 Primes which contain the digit 1 or the digit 2. +0
2
2, 11, 13, 17, 19, 23, 29, 31, 41, 61, 71, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 311, 313, 317, 331, 401, 419 (list; graph; listen)
OFFSET

1,1

LINKS

Chris Caldwell, The First 1,000 Prime.

EXAMPLE

2 and 11 are primes which contain either the digit 1 or the digit 2.

MAPLE

a:=proc(n) local nn: nn:=convert(convert(n, base, 10), set): if isprime(n) = true and 0 < nops(`intersect`({1, 2}, nn)) then n else end if end proc: seq(a(n), n=1..400); - Emeric Deutsch (deutsch(AT)duke.poly.edu), Mar 31 2008

MATHEMATICA

Select[Prime[Range[100]], DigitCount[ # ][[1]] + DigitCount[ # ][[2]] > 0 &] - Stefan Steinerberger (stefan.steinerberger(AT)gmail.com), Mar 16 2008

CROSSREFS

Cf. A133765.

Adjacent sequences: A137235 A137236 A137237 this_sequence A137239 A137240 A137241

Sequence in context: A116437 A048867 A113626 this_sequence A048521 A058048 A038915

KEYWORD

nonn,base,easy

AUTHOR

Parthasarathy Nambi (PachaNambi(AT)yahoo.com), Mar 08 2008

EXTENSIONS

Corrected and extended by Stefan Steinerberger (stefan.steinerberger(AT)gmail.com) and Emeric Deutsch (deutsch(AT)duke.poly.edu), Mar 16 2008

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 January 7 17:35 EST 2009. Contains 152824 sequences.


AT&T Labs Research