A089374 Numbers n such that the concatenation (in descending order) of all the divisors of n, with 1 in the least significant position, is prime (or 1).
1, 3, 4, 7, 13, 19, 25, 31, 39, 43, 48, 91, 97, 103, 109, 117, 151, 157, 181, 193, 211, 241, 244, 247, 271, 289, 292, 301, 309, 325, 337, 349, 367, 388, 409, 421, 439, 487, 523, 547, 571, 597, 601, 613, 628, 631, 633, 687, 691, 703, 711, 733, 769, 772, 793, 811
Offset: 1
Examples
4 is a term as 421 is prime; 39 is a term as concatenation of 39,13,3 and 1, i.e. 391331, is prime. 25 is a member as 2551 is prime. Divisors of 39 are 1,3,13,39; reverse concatenation of divisors 391331 is prime. 48 is a member as 48241612864321 is a prime.
Links
- Robert Israel, Table of n, a(n) for n = 1..10000
Programs
-
Maple
select(n->isprime(parse(cat("",op(sort([op(numtheory[divisors](n))],`>`))))),[$1..3000])[]; (Alec Mihailovs, Aug 14 2005)
-
Mathematica
Join[{1},Select[Range[1000],PrimeQ[FromDigits[Flatten[IntegerDigits/@Reverse[Divisors[ #]]]]]&]] (* Harvey P. Dale, Feb 11 2024 *)
Extensions
Corrected and extended by David Wasserman, Sep 15 2005
Edited by N. J. A. Sloane, Apr 29 2007, Aug 14 2010
Comments