OFFSET
1,1
EXAMPLE
a(4) = 11131719 is the concatenation of four consecutive primes 11, 13, 17, 19, and 11131719 = 3 * 17 * 167 * 1307 is the product of four primes.
MAPLE
lcat:= proc(L) local r, i;
r:= L[1];
for i from 2 to nops(L) do
r:= r * 10^(1+ilog10(L[i]))+L[i]
od;
r
end proc:
f:= proc(n) local i, j, x;
for i from 1 do
x:= lcat([seq(ithprime(j), j=i..i+n-1)]);
if numtheory:-bigomega(x) = n then return x fi
od;
end proc:
map(f, [$1..13]);
MATHEMATICA
a[n_]:=Module[{i=1}, While[PrimeOmega[m={}; Do[m=Join[m, IntegerDigits[Prime[j]]], {j, i, i+n-1}]; ln=FromDigits[m]]!=n, i++]; ln]; Array[a, 11] (* James C. McMahon, Jun 02 2025 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robert Israel, May 23 2025
STATUS
approved
