can you please check my code and tell me what i am doing wrong .
Can you please check my code
hello @aditya12679 could you please explain your logic ?
i have doubt whether your approach is correct or not .
i am taking sum of digits and then prime factorizing the number and then adding the sum of primes and then comparing it with original sum of digits
@aditya12679 the error is in your prime factorizing because it is giving sum as 12 for sample test case but it should give 18 .
should i tell you my way of prime factorizing the number .
Yeah it would be great if you provide the correct code