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 6, 2023 08:39Robert BurkeRobert BurkeScore: 22,694Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 08:3918,77693,842,28716,522,92702,232,320
2Oct 6, 2023 08:3918,89659,014,25616,628,63402,228,224
3Oct 6, 2023 08:3918,91172,984,48516,642,08002,224,128
4Oct 6, 2023 08:3922,62244,821,67217,917,0001,990,0002,506,752
5Oct 6, 2023 08:3922,63445,840,29017,927,0001,991,0002,293,760
6Oct 6, 2023 08:3922,68646,445,37217,968,0001,996,0002,293,760
7Oct 6, 2023 08:3922,69440,596,14516,976,0002,995,0002,363,392
8Oct 6, 2023 08:3922,69449,476,99516,976,0002,995,0002,293,760
9Oct 6, 2023 08:3922,70846,750,73517,985,0001,998,0002,506,752
10Oct 6, 2023 08:3922,71742,272,17517,992,0001,999,0002,510,848
11Oct 6, 2023 08:3922,75334,732,38618,021,0002,002,0002,510,848
12Oct 6, 2023 08:3922,81941,922,72417,069,0003,012,0002,293,760