+ 2
Who can write a program in least number of steps to check if a number is prime or not??Tell me quickly and write the logic.
lets see who wins...
4 Antworten
0
Here's my try:
https://code.sololearn.com/cdN85QmcpCae/?ref=app
0
nice try man but it will take n 'type' steps ,that means n+-k.
0
can anyone solve it in √n/2 steps??but the actual answer is much smaller.
0
This is my code, it uses only other prime numbers and the square root of n as a limit
https://code.sololearn.com/cn1cz2EdhtBP/?ref=app