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 21:02Ivan BessonovIvan BessonovScore: 15,943Success
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 21:0215,36679,558,32913,522,23202,195,456
2May 20, 2024 20:5815,39386,232,47513,546,24602,187,264
3May 20, 2024 21:0215,40883,250,68313,558,86902,195,456
4May 20, 2024 20:5815,41476,457,13713,564,23302,191,360
5May 20, 2024 20:5815,80229,934,55413,906,00002,289,664
6May 20, 2024 20:5815,83232,104,67612,937,000995,0002,351,104
7May 20, 2024 20:5815,83334,002,14812,938,000995,0002,289,664
8May 20, 2024 20:5815,87334,155,97811,973,0001,995,0002,342,912
9May 20, 2024 21:0215,89130,857,89111,987,0001,997,0002,338,816
10May 20, 2024 20:5815,90335,162,88111,996,0001,999,0002,338,816
11May 20, 2024 21:0215,91733,254,94212,006,0002,001,0002,289,664
12May 20, 2024 21:0215,91936,581,89512,008,0002,001,0002,347,008
13May 20, 2024 20:5815,94329,732,09512,026,0002,004,0002,347,008
14May 20, 2024 20:5816,01778,192,66714,095,28702,203,648
15May 20, 2024 21:0216,06794,637,64214,139,09302,191,360
16May 20, 2024 20:5816,10535,619,87412,148,0002,024,0002,289,664
17May 20, 2024 21:0216,28930,582,25612,287,0002,047,0002,289,664
18May 20, 2024 20:5816,38638,158,23312,360,0002,060,0002,338,816
19May 20, 2024 20:5816,48432,492,98213,470,0001,036,0002,347,008
20May 20, 2024 21:0216,48640,826,79513,472,0001,036,0002,289,664
21May 20, 2024 21:0216,49830,194,05013,481,0001,037,0002,289,664
22May 20, 2024 21:0216,50339,955,84213,486,0001,037,0002,441,216
23May 20, 2024 21:0216,52438,727,97013,503,0001,038,0002,289,664
24May 20, 2024 21:0216,53832,000,89313,514,0001,039,0002,338,816