login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A054518 Emirpnons (nonprimes whose reversal is a different nonprime). 1
10, 12, 15, 18, 21, 24, 25, 26, 27, 28, 36, 39, 40, 42, 45, 46, 48, 49, 51, 52, 54, 56, 57, 58, 60, 62, 63, 64, 65, 68, 69, 72, 75, 78, 80, 81, 82, 84, 85, 86, 87, 90, 93, 94, 96, 100, 102, 105, 108, 114, 115, 116, 117, 120 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
a(1)=12 because 12 is not a prime, neither is 21 and 12<>21
MATHEMATICA
emirpnonQ[n_]:=Module[{idn=IntegerDigits[n], ridn}, ridn=Reverse[idn]; n>9&&ridn!=idn&&!PrimeQ[FromDigits[ridn]]]; With[{nprs=Complement[ Range[ 120], Prime[ Range[PrimePi[120]]]]}, Select[nprs, emirpnonQ]] (* Harvey P. Dale, Feb 05 2012 *)
PROG
(Python)
from sympy import isprime
def ok(n):
r = int(str(n)[::-1])
if r == n: return False
return not isprime(n) and not isprime(r)
print([k for k in range(121) if ok(k)]) # Michael S. Branicky, Oct 24 2022
CROSSREFS
Cf. A006567.
Sequence in context: A006793 A308268 A248715 * A072198 A057485 A162825
KEYWORD
base,easy,nonn
AUTHOR
Henry Bottomley, Apr 07 2000
EXTENSIONS
Offset corrected by Sean A. Irvine, Oct 24 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 00:30 EDT 2024. Contains 371917 sequences. (Running on oeis4.)