OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1) = 15 because 15 = 3*5 is semiprime, "1" is a nonprime digit, and "5" is a prime digit.
MATHEMATICA
SemiprimeQ[n_Integer] := If[Abs[n] < 2, False, (2 == Plus @@ Transpose[FactorInteger[Abs[n]]][[2]])]; fQ[n_] := Module[{d = IntegerDigits[n]}, SemiprimeQ[n] && Intersection[d, {2, 3, 5, 7}] != {} && Intersection[d, {1, 4, 6, 8, 9}] != {} && ! MemberQ[d, 0]]; Select[Range[278], fQ] (* T. D. Noe, Feb 09 2013 *)
spQ[n_]:=PrimeOmega[n]==2&&FreeQ[IntegerDigits[n], 0]&&Count[ IntegerDigits[ n], _?PrimeQ]>0&&Count[IntegerDigits[n], _?(!PrimeQ[#]&)]>0; Select[ Range[ 300], spQ] (* Harvey P. Dale, Mar 31 2022 *)
CROSSREFS
KEYWORD
nonn,base,easy,less
AUTHOR
Jonathan Vos Post, Feb 06 2013
STATUS
approved