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!)
A228118 Numbers consisting of only odd digits such that no permutation of its digits yields a semiprime. 1
1, 3, 5, 7, 11, 13, 17, 31, 37, 71, 73, 79, 97, 99, 113, 117, 131, 135, 153, 171, 199, 311, 315, 333, 337, 351, 373, 513, 531, 555, 577, 711, 733, 757, 775, 777, 919, 991, 999, 1113, 1131, 1155, 1179, 1197, 1311, 1359, 1377, 1395, 1515, 1539, 1551, 1557 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
This is to A228096 as A001358 Semiprimes (or biprimes): products of two primes is to A000040 Primes. No more below 1111 = 11 * 101.
LINKS
EXAMPLE
117 is in this sequence because 117 = 3^2 * 13; 171 = 3^2 * 19; and 711 = 3^2 * 79.
MATHEMATICA
fQ[n_] := Block[{id = IntegerDigits@ n}, Union[ OddQ[id]][[1]] && !MemberQ[ Union[ PrimeOmega[ FromDigits@# & /@ Permutations[id]]], 2]]; Select[ Range[1, 1000, 2], fQ] (* Robert G. Wilson v, Aug 11 2013 *)
npdsQ[n_]:=Module[{idn=IntegerDigits[n]}, AllTrue[idn, OddQ]&&Count[ FromDigits/@ Permutations[idn], _?(PrimeOmega[#]==2&)]==0]; Select[Range[ 1600], npdsQ] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Mar 24 2018 *)
CROSSREFS
Sequence in context: A126145 A206864 A155801 * A136186 A023210 A335120
KEYWORD
nonn,base,easy
AUTHOR
Jonathan Vos Post, Aug 10 2013
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 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)