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:55apuxbtapuxbtScore: 32,151Success
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:5531,635103,040,10627,838,36102,232,320
2Dec 1, 2022 05:5531,68395,038,23327,881,01502,232,320
3Dec 1, 2022 05:5531,68787,874,96327,884,71302,244,608
4Dec 1, 2022 05:5531,98953,880,82826,140,0002,010,0002,265,088
5Dec 1, 2022 05:5532,06550,496,14626,202,0002,015,0002,465,792
6Dec 1, 2022 05:5532,11750,062,35326,245,0002,018,0002,383,872
7Dec 1, 2022 05:5532,15154,553,83527,283,0001,010,0002,392,064
8Dec 1, 2022 05:5532,18550,236,89127,312,0001,011,0002,265,088
9Dec 1, 2022 05:5532,20158,440,78127,325,0001,012,0002,387,968
10Dec 1, 2022 05:5532,20151,581,25328,337,00002,387,968
11Dec 1, 2022 05:5532,24850,501,07227,365,0001,013,0002,392,064
12Dec 1, 2022 05:5532,29949,865,65828,423,00002,379,776