OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..2461
Michael S. Branicky, Table of n, a(n), associated_prime(n) for n = 1..2461
Michael S. Branicky, Python program for OEIS A390451
EXAMPLE
k Prime from reordered divisor string
3 13
4 241
7 17
9 139
12 1241263
13 113
16 248161
19 191
MATHEMATICA
okQ[k_]:=AnyTrue[FromDigits/@Flatten/@IntegerDigits/@Permutations[Divisors[k]], PrimeQ]; Select[Range[43], okQ] (* James C. McMahon, Nov 11 2025 *)
PROG
(Python) # see links for a version suitable for producing b-file and a-file
from itertools import permutations
from sympy import divisors, isprime
def ok(n):
d = list(map(str, divisors(n)))
return n > 2 and sum(map(int, "".join(d)))%3 and any(isprime(int("".join(p))) for p in permutations(d))
print([k for k in range(190) if ok(k)]) # Michael S. Branicky, Nov 06 2025
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jean-Marc Rebert, Nov 06 2025
EXTENSIONS
a(40) onward from Michael S. Branicky, Nov 06 2025
STATUS
approved
