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:44apuxbtapuxbtScore: 54,856Success
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:4454,67272,576,76447,109,0001,002,0002,387,968
2Dec 1, 2022 06:4454,67280,617,94747,109,0001,002,0002,265,088
3Dec 1, 2022 06:4454,69482,313,36447,129,0001,002,0002,265,088
4Dec 1, 2022 06:4454,69571,823,45447,130,0001,002,0002,265,088
5Dec 1, 2022 06:4454,75378,102,06447,180,0001,003,0002,392,064
6Dec 1, 2022 06:4454,83072,475,50147,245,0001,005,0002,265,088
7Dec 1, 2022 06:4454,85674,722,28747,268,0001,005,0002,375,680
8Dec 1, 2022 06:4454,86670,479,00848,282,00002,387,968
9Dec 1, 2022 06:4454,99968,664,06747,391,0001,008,0002,387,968
10Dec 1, 2022 06:4456,028126,406,59249,304,25102,236,416
11Dec 1, 2022 06:4456,106122,221,21249,373,67502,236,416
12Dec 1, 2022 06:4456,130100,533,11149,394,37002,240,512