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 listDec 1, 2022 06:10apuxbtapuxbtScore: 32,699Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 06:1031,93696,452,19228,103,58602,240,512
2Dec 1, 2022 06:1032,03384,023,51028,189,26102,240,512
3Dec 1, 2022 06:1032,055116,543,59928,208,38702,240,512
4Dec 1, 2022 06:1032,59152,586,86927,656,0001,024,0002,383,872
5Dec 1, 2022 06:1032,59950,314,57027,663,0001,024,0002,383,872
6Dec 1, 2022 06:1032,68553,809,56427,736,0001,027,0002,375,680
7Dec 1, 2022 06:1032,69952,479,49328,775,00002,260,992
8Dec 1, 2022 06:1032,82359,988,34826,892,0001,992,0002,396,160
9Dec 1, 2022 06:1032,83256,499,01527,896,000996,0002,379,776
10Dec 1, 2022 06:1032,83360,416,28127,897,000996,0002,265,088
11Dec 1, 2022 06:1032,84458,223,90328,903,00002,265,088
12Dec 1, 2022 06:1032,85354,412,74526,918,0001,993,0002,265,088