samedi 11 avril 2020

Strange number codechef long challange

hen Varsha was travelling home, she saw a mysterious villa. Varsha is curious about this strange villa and wants to explore it. When she reached the entry gate, the guard gave her a problem to solve and said that he would allow her to enter the villa only if she solved it.

The guard gave Varsha two integers X and K. Varsha needs to determine whether there is an integer A such that it has exactly X positive integer divisors and exactly K of them are prime numbers. Can some give some hint for this quesion as i am getting TLE??

Aucun commentaire:

Enregistrer un commentaire