OFFSET
1,2
LINKS
MATHEMATICA
Table[SortBy[Range[10^(n - 1), 10^n - 1], PrimeOmega], {n, 2}] // Flatten (* Michael De Vlieger, Jul 20 2017 *)
PROG
(PARI) upto(t10nm1) = {my(v, res = []); for(i=1, t10nm1, res = concat(res, vecsort(vector(9*10^(i-1), j, k=j+10^(i-1)-1; [bigomega(k), k])))); vector(#res, i, res[i][2])}
(PARI) mycmp(x, y) = my(dd = #digits(x) - #digits(y)); if (dd, sign(dd), sign(bigomega(x) - bigomega(y)));
lista(nn) = {v = vector(10^#Str(nn), k, k); w = vecsort(v, mycmp); vector(nn, k, w[k]); } \\ Michel Marcus, Jul 21 2017
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
David A. Corneth, Jul 19 2017
EXTENSIONS
Definition clarified by Giovanni Resta, Jul 27 2017
STATUS
approved