OFFSET
1,1
COMMENTS
Semiprimes in A036301.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 143 is a term because 143 = 11 * 13 is a semiprime and the sum of its even digits (4) and the sum of its odd digits (1 and 3) are both 4.
MAPLE
filter:= proc(n) local t;
if numtheory:-bigomega(n) <> 2 then return false fi;
add(t*(-1)^t, t=convert(n, base, 10)) = 0
end proc:
select(filter, [$100 .. 10000]);
MATHEMATICA
Select[Range[3746], PrimeOmega[#]==2&&Total[Select[IntegerDigits[#], OddQ]]==Total[Select[IntegerDigits[#], EvenQ]]&] (* James C. McMahon, Sep 06 2025 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Zak Seidov and Robert Israel, Sep 05 2025
STATUS
approved
