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 listFeb 23, 2024 04:11Yuriy LyfenkoYuriy LyfenkoScore: 28,300Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 23, 2024 04:1128,06855,361,56023,671,0001,029,0002,396,160
2Feb 23, 2024 04:1128,12359,052,38323,717,0001,031,0002,392,064
3Feb 23, 2024 04:1128,15652,651,71324,777,00002,527,232
4Feb 23, 2024 04:1128,28253,146,92022,897,0001,991,0002,383,872
5Feb 23, 2024 04:1128,28553,577,55423,896,000995,0002,527,232
6Feb 23, 2024 04:1128,28652,472,94823,897,000995,0002,392,064
7Feb 23, 2024 04:1128,30050,159,69123,908,000996,0002,396,160
8Feb 23, 2024 04:1128,30757,099,48922,918,0001,992,0002,383,872
9Feb 23, 2024 04:1128,31749,775,38123,923,000996,0002,527,232
10Feb 23, 2024 04:1129,05294,812,99825,566,01802,232,320
11Feb 23, 2024 04:1129,18989,793,67625,686,58902,240,512
12Feb 23, 2024 04:1129,20584,644,08825,700,43202,236,416