Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listMay 20, 2024 20:24Ivan BessonovIvan BessonovScore: 15,852Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 20:2415,35976,235,35013,515,87902,199,552
2May 20, 2024 20:2415,47259,570,37613,614,98402,199,552
3May 20, 2024 20:2415,76431,231,81911,891,0001,981,0002,289,664
4May 20, 2024 20:2415,79344,637,51011,913,0001,985,0002,289,664
5May 20, 2024 20:2415,80130,533,87011,919,0001,986,0002,289,664
6May 20, 2024 20:2415,80328,801,29413,907,00002,289,664
7May 20, 2024 20:2415,80630,865,75011,922,0001,987,0002,289,664
8May 20, 2024 20:2415,80931,323,38312,919,000993,0002,347,008
9May 20, 2024 20:2415,81436,288,42611,928,0001,988,0002,289,664
10May 20, 2024 20:2415,81730,375,42711,931,0001,988,0002,461,696
11May 20, 2024 20:2415,84430,611,58712,871,0001,072,0002,289,664
12May 20, 2024 20:2415,84931,185,28311,955,0001,992,0002,289,664
13May 20, 2024 20:2415,85233,463,49812,877,0001,073,0002,289,664
14May 20, 2024 20:2415,86737,291,81711,969,0001,994,0002,289,664
15May 20, 2024 20:2415,87231,567,70812,970,000997,0002,285,568
16May 20, 2024 20:2415,87833,437,55111,977,0001,996,0002,285,568
17May 20, 2024 20:2415,92627,542,51213,014,0001,001,0002,289,664
18May 20, 2024 20:2415,99089,234,80114,071,09502,199,552
19May 20, 2024 20:2416,03684,686,15914,111,26402,203,648
20May 20, 2024 20:2416,05166,313,59014,124,88002,195,456
21May 20, 2024 20:2416,08369,637,95414,152,62302,195,456
22May 20, 2024 20:2416,43830,865,98014,465,00002,289,664
23May 20, 2024 20:2416,46931,623,50314,493,00002,351,104
24May 20, 2024 20:2416,52434,100,89613,503,0001,038,0002,338,816