OFFSET
1,1
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..10000
EXAMPLE
Aliquot parts of 8 are 1, 2, 4 and concat(4,2,1) = 421 is prime;
aliquot parts of 1822 are 1, 2, 911 and concat(911,2,1) = 91121 is prime.
MAPLE
with(numtheory): P:= proc(q) local a, b, k, n;
for n from 1 to q do a:=sort([op(divisors(n))]); b:=0;
for k from nops(a)-1 by -1 to 1 do b:=b*10^(ilog10(a[k])+1)+a[k]; od;
if isprime(b) then print(n); fi; od; end: P(10^9);
MATHEMATICA
Select[Range@ 362, PrimeQ@ FromDigits@ Flatten@ IntegerDigits@ Reverse@ Most@ Divisors@ # &] (* Michael De Vlieger, Apr 21 2016 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paolo P. Lava, Apr 21 2016
STATUS
approved