SPOJ FACTCG2 — Medium Factorization(Giving Wrong Answer)

Revision en1, by watchdogs132, 2018-11-07 07:32:32

Link to the question :https://www.spoj.com/problems/FACTCG2/

Link to code : https://ideone.com/4JlHQE

My approach : I basically created a vector Primes where I stored least prime factor of every number . Then for each input , I divide it by its least prime factor and then display the factors . But Judge gives me wrong answer .

Tags #primes, factorisation

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English watchdogs132 2018-11-07 07:32:32 393 Initial revision (published)