Give som example how for which test cases fails
Two test cases fail
@rishravi937
you have to take the sum of digits of the prime factors as well.
and also you did not need to precompute primes, just iterating till root n would do.
I have change my code then how