OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
g:= proc(x, n)
local L, i;
L:= convert(x+9^(2*n), base, 9);
add((L[i]+1)*10^(i-1), i=1..n)+add((L[i]+1)*10^i, i=n+1..2*n)
end proc:
select(t -> numtheory:-bigomega(t)=2, [seq(seq(g(i, n), i=0..9^(2*n)-1), n=1..2)]); # Robert Israel, Jan 20 2019
MATHEMATICA
Select[Range@ 12000, And[OddQ@ #2, #3[[Ceiling[#2/2] ]] == 0, Count[#3, 0] == 1, PrimeOmega@ #1 == 2] & @@ {#, IntegerLength@ #, IntegerDigits@ #} &] (* or *)
Select[Flatten@ Table[a (10^(d + 1)) + b, {d, 2}, {a, FromDigits /@ Tuples[Range@ 9, {d}]}, {b, FromDigits /@ Tuples[Range@ 9, {d}]}], PrimeOmega@ # == 2 &] (* Michael De Vlieger, Jan 20 2019 *)
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Omar E. Pol, Jun 12 2009
STATUS
approved