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 21, 2024 14:02Ivan BessonovIvan BessonovScore: 15,490Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2024 14:0215,28530,755,49212,417,0001,034,0002,351,104
2May 21, 2024 13:5615,31429,658,95313,476,00002,289,664
3May 21, 2024 14:0215,32340,693,81912,447,0001,037,0002,355,200
4May 21, 2024 13:5615,32832,849,95212,452,0001,037,0002,289,664
5May 21, 2024 13:5615,35730,320,62312,475,0001,039,0002,289,664
6May 21, 2024 13:5615,37830,539,70012,492,0001,041,0002,289,664
7May 21, 2024 14:0215,37830,487,00212,492,0001,041,0002,342,912
8May 21, 2024 13:5615,38030,287,30312,493,0001,041,0002,347,008
9May 21, 2024 13:5615,39330,091,87813,546,00002,453,504
10May 21, 2024 14:0215,39930,892,04612,509,0001,042,0002,342,912
11May 21, 2024 14:0215,41636,500,18513,566,00002,289,664
12May 21, 2024 14:0215,42427,772,04412,529,0001,044,0002,289,664
13May 21, 2024 13:5615,49079,539,54913,631,51502,203,648
14May 21, 2024 13:5615,50983,050,74413,647,82402,195,456
15May 21, 2024 14:0215,51356,372,58713,651,00802,195,456
16May 21, 2024 14:0215,60053,818,42913,727,61902,199,552
17May 21, 2024 14:0215,63067,639,05613,754,28102,199,552
18May 21, 2024 14:0215,83138,377,61011,941,0001,990,0002,347,008
19May 21, 2024 13:5615,83934,872,61711,947,0001,991,0002,289,664
20May 21, 2024 13:5615,90341,462,70111,996,0001,999,0002,289,664
21May 21, 2024 14:0215,94443,566,34013,029,0001,002,0002,289,664
22May 21, 2024 14:0215,95831,528,41112,037,0002,006,0002,289,664
23May 21, 2024 13:5616,02830,443,42312,090,0002,015,0002,428,928
24May 21, 2024 13:5616,18974,543,53214,246,03102,195,456