HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Forums > Discussion of problems > topic:


Problem "50650 - Prime numbers"

There is a contest!

В настоящий момент идёт турнир. Некоторая информация и функции сервера недоступны до его окончания.

imesecanOct.07.2015 at 10:13:04 AM
0--- Test 1 ---
2 5

--- Pattern ---
2
3
5

imesecanDec.10.2015 at 03:10:00 PM
1You can make faster decision if you check only for odd numbers.
So,
if the number is 2, it's prime,
if not, if the number is divisible by two, it's not prime,
otherwise start from 3 and check for only odd numbers until the square root of the numbers.


www.contester.ru