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:40apuxbtapuxbtScore: 31,344Success
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:4031,08551,718,97127,355,00002,383,872
2Dec 1, 2022 05:4031,19550,769,64127,452,00002,383,872
3Dec 1, 2022 05:4031,20852,150,66126,446,0001,017,0002,387,968
4Dec 1, 2022 05:4031,22360,064,45327,476,00002,387,968
5Dec 1, 2022 05:4031,29153,109,63626,517,0001,019,0002,387,968
6Dec 1, 2022 05:4031,29949,772,32827,543,00002,383,872
7Dec 1, 2022 05:4031,34449,462,34626,562,0001,021,0002,265,088
8Dec 1, 2022 05:4031,35350,603,30827,591,00002,392,064
9Dec 1, 2022 05:4031,40253,231,81427,634,00002,383,872
10Dec 1, 2022 05:4032,703103,224,20828,778,60702,236,416
11Dec 1, 2022 05:4032,72291,363,80228,795,58602,232,320
12Dec 1, 2022 05:4032,811119,132,15828,873,60802,240,512