0

How about my code to find prime number with the least running time.Do you think my code can reduce looping-time...

https://code.sololearn.com/c94obyFZJVOy/?ref=app

29th Sep 2017, 6:24 AM
Pyae Phyo Win
Pyae Phyo Win - avatar
3 Respostas
+ 1
Honestly, looking at your code I get very very confused. You have a section commented out to ask for a number to input. However, you continue the program based on the input that is being put in to the program yet you will never get it since the request for input is commented out. Please let me know how you are approaching this problem. Thanks.
13th Dec 2017, 10:26 PM
Ryan Wakefield
Ryan Wakefield - avatar
0
I just used a mathematical formula to reduce looping time for the larger numbers.
5th Jan 2018, 3:56 PM
Pyae Phyo Win
Pyae Phyo Win - avatar
0
I understand that. However, you still haven't answered my original question regarding how you are going to get input when the line to ask for it is commented out. This app asks for it still (even though it shouldnt). So how are you going to get your input when the line to ask for it is commented out?
6th Jan 2018, 12:53 AM
Ryan Wakefield
Ryan Wakefield - avatar