OFFSET
1,13
COMMENTS
Multiplicity of prime divisors of n, where n is a number composed of the sorted digits of a prime number.
LINKS
Joshua Michael McAteer, Table of n, a(n) for n = 1..9592
EXAMPLE
The 13th prime number is 41. Sorting the digits gives 14. 14 has 2 factors, 2 and 7. The 13th term of this sequence is 2.
PROG
(MATLAB)
nmax= 100;
p = primes(nmax);
lp = length(p);
sfac = zeros(1, lp);
for i = 1:lp
digp=str2double(regexp(num2str(p(i)), '\d', 'match'));
sdigp = sort(digp);
l=length(digp);
conv = 10.^flip(0:(l-1));
snum = sum(conv.*sdigp);
sfac(i) = numel(factor(snum));
end
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Joshua Michael McAteer, Aug 06 2019
STATUS
approved