OFFSET
1,2
COMMENTS
Numbers k that are not palindromic primes, such that the concatenation of the prime factors of k with multiplicity is congruent mod k to the reverse of k.
EXAMPLE
MAPLE
revdigs:= proc(n) local L, i;
L:= convert(n, base, 10);
add(L[-i]*10^(i-1), i=1..nops(L))
end proc:
f:= proc(n) local L, p, i, r;
L:= sort(map(t -> t[1]$t[2], ifactors(n)[2]));
r:= L[1];
for i from 2 to nops(L) do r:= r*10^(1+max(0, ilog10(L[i])))+L[i] od;
r
end proc:
f(1):= 1:
filter:= proc(n) local r;
r:= revdigs(n);
(f(n) - r) mod n = 0 and (revdigs(n) <> n or not isprime(n))
end proc:
select(filter, [$1..10^6]);
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
J. M. Bergot and Robert Israel, Jan 18 2022
STATUS
approved