Gives TLE on two test cases
@sufia.aleena12 yours solution is O(n2) therefore you are getting tle, use this approach to find prime factorisation
Thank You , it worked.
If your issue had been resolved please close this doubt.
@sufia.aleena12 yours solution is O(n2) therefore you are getting tle, use this approach to find prime factorisation
Thank You , it worked.
If your issue had been resolved please close this doubt.