Can't factorize upto 29 digits

Revision en1, by GauravPawarR, 2026-09-19 19:08:26

So, I have been at it for 2 days and cannot understand, why my code is failing and what can i do better to solve https://www.spoj.com/problems/FACT2/

My code: https://paste.ofcode.org/ZuvTJnRUetnYGfhfScVLpU have been on TLE train for quite sometime and can't figure out what to do.

PS: Please provide resources for such questions, so I can better solve questions.I am a learner

Tags problem solving, primes, factorisation, math

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English GauravPawarR 2026-09-19 19:08:26 416 Initial revision (published)