No output for very large numbers, is this same with other devices? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

No output for very large numbers, is this same with other devices?

The code works perfectly for smaller number but no output for very large numbers, maybe cos of my device. Just need someone to help me run the code to know what the output is. It's expected to return the largest prime factor. https://code.sololearn.com/W9vRO0aXWwbH/?ref=app

14th Sep 2020, 9:01 PM
Infinite
Infinite - avatar
3 Answers
+ 1
Coder Kitten yeah, recursion is more time complex. I will try your method, thanks for the help
15th Sep 2020, 5:43 AM
Infinite
Infinite - avatar
15th Sep 2020, 12:30 AM
Infinite
Infinite - avatar
0
Thanks Coder Kitten. This is actually a question from project euler. I will out some other methods also, maybe recursion as Mirielle[ InAcTiVe ] mentioned ealier.
15th Sep 2020, 4:01 AM
Infinite
Infinite - avatar