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 listJul 31, 2022 15:28Robert BurkeRobert BurkeScore: 36,307Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2022 15:2835,30287,421,39631,065,91502,260,992
2Jul 31, 2022 15:2735,32096,639,97731,081,81302,252,800
3Jul 31, 2022 15:2835,36694,193,12031,122,17002,269,184
4Jul 31, 2022 15:2835,43994,144,25431,185,97502,273,280
5Jul 31, 2022 15:2735,52396,249,94731,260,51302,260,992
6Jul 31, 2022 15:2735,54994,309,39131,283,45702,273,280
7Jul 31, 2022 15:2835,90552,605,12131,596,00002,273,280
8Jul 31, 2022 15:2735,91355,221,75031,603,00002,535,424
9Jul 31, 2022 15:2736,24252,893,69429,900,0001,993,0002,387,968
10Jul 31, 2022 15:2836,25062,536,05130,904,000996,0002,293,760
11Jul 31, 2022 15:2836,25161,421,09929,908,0001,993,0002,273,280
12Jul 31, 2022 15:2736,25963,176,33031,908,00002,297,856
13Jul 31, 2022 15:2736,30752,948,48928,955,0002,995,0002,293,760
14Jul 31, 2022 15:2736,31149,942,06929,957,0001,997,0002,387,968
15Jul 31, 2022 15:2836,31853,092,53230,962,000998,0002,408,448
16Jul 31, 2022 15:2836,32456,923,73129,968,0001,997,0002,387,968
17Jul 31, 2022 15:2736,33055,363,56229,972,0001,998,0002,273,280
18Jul 31, 2022 15:2836,33954,490,84029,980,0001,998,0002,293,760
19Jul 31, 2022 15:2736,35051,281,91329,989,0001,999,0002,273,280
20Jul 31, 2022 15:2836,35159,974,86329,990,0001,999,0002,273,280
21Jul 31, 2022 15:2836,40057,988,01730,030,0002,002,0002,297,856
22Jul 31, 2022 15:2736,42460,863,20831,052,0001,001,0002,293,760
23Jul 31, 2022 15:2736,46455,145,74729,080,0003,008,0002,273,280
24Jul 31, 2022 15:2836,48351,863,58530,099,0002,006,0002,535,424