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 05:31apuxbtapuxbtScore: 31,422Success
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 05:3131,30255,497,61226,526,0001,020,0002,392,064
2Dec 1, 2022 05:3131,35648,286,78027,593,00002,379,776
3Dec 1, 2022 05:3131,37650,809,33126,589,0001,022,0002,387,968
4Dec 1, 2022 05:3131,39048,702,01526,600,0001,023,0002,379,776
5Dec 1, 2022 05:3131,40354,661,95027,635,00002,265,088
6Dec 1, 2022 05:3131,42250,997,86526,627,0001,024,0002,383,872
7Dec 1, 2022 05:3131,42250,010,90926,627,0001,024,0002,383,872
8Dec 1, 2022 05:3131,51657,940,19626,707,0001,027,0002,383,872
9Dec 1, 2022 05:3131,68454,003,92927,882,00002,392,064
10Dec 1, 2022 05:3132,48198,148,46428,583,26502,240,512
11Dec 1, 2022 05:3132,49789,987,22928,597,50902,228,224
12Dec 1, 2022 05:3132,54393,648,28828,638,01502,236,416