+ 1

What causes the error?

This is my code for Semiprime Number Challenge. But it always returns “Time limit exceeded”. What’s wrong with my code? How to solve it? https://code.sololearn.com/cAyaOx4W0Iiz/?ref=app

31st Dec 2018, 1:46 AM
Alice
Alice - avatar
2 odpowiedzi
+ 3
Jamie💐 I typed 21 in it and time limit exceeded. I have changed the code into another possible version and solved it. Thank you~
31st Dec 2018, 2:13 AM
Alice
Alice - avatar
+ 2
Daniel Prince Sorry but I am learning python instead of C++. I can not solve C++ problems.
31st Dec 2018, 2:14 AM
Alice
Alice - avatar