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 listOct 3, 2023 01:07apuxbtapuxbtError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 3, 2023 01:0700000Error: expected "51168874298168 ", got "51168874297647 "stderr
2Oct 3, 2023 01:0729,60790,366,60326,054,38302,207,744
3Oct 3, 2023 01:1129,677101,039,09826,115,92502,207,744
4Oct 3, 2023 01:0729,70686,970,68726,141,11102,211,840
5Oct 3, 2023 01:1129,71478,984,30726,148,18302,211,840
6Oct 3, 2023 01:0729,74684,403,34226,176,22302,207,744
7Oct 3, 2023 01:1129,78490,238,52826,209,66902,199,552
8Oct 3, 2023 01:0729,97553,311,69326,378,00002,293,760
9Oct 3, 2023 01:0730,01051,457,17625,394,0001,015,0002,293,760
10Oct 3, 2023 01:0730,04057,392,82925,419,0001,016,0002,490,368
11Oct 3, 2023 01:0730,08350,592,75926,473,00002,293,760
12Oct 3, 2023 01:0730,10950,166,01825,477,0001,019,0002,293,760
13Oct 3, 2023 01:0730,13348,850,72125,498,0001,019,0002,293,760
14Oct 3, 2023 01:0730,14347,411,92225,506,0001,020,0002,482,176
15Oct 3, 2023 01:0730,16646,848,12625,525,0001,021,0002,293,760
16Oct 3, 2023 01:0730,24455,841,96325,592,0001,023,0002,293,760