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 29, 2022 02:56Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2022 02:5600000Error: expected "50820479678111 ", got "50820479678070 "stderr
2Dec 29, 2022 02:5628,15149,934,72224,773,00002,392,064
3Dec 29, 2022 02:5628,27853,346,62423,890,000995,0002,265,088
4Dec 29, 2022 02:5628,29850,740,03423,906,000996,0002,387,968
5Dec 29, 2022 02:5628,30756,762,58924,910,00002,265,088
6Dec 29, 2022 02:5628,31453,129,18222,923,0001,993,0002,387,968
7Dec 29, 2022 02:5628,32849,283,01323,891,0001,038,0002,527,232
8Dec 29, 2022 02:5628,42856,957,02424,017,0001,000,0002,392,064
9Dec 29, 2022 02:5628,49849,732,02523,072,0002,006,0002,396,160
10Dec 29, 2022 02:5628,50056,324,59523,074,0002,006,0002,265,088
11Dec 29, 2022 02:5628,82799,555,78725,367,48902,232,320
12Dec 29, 2022 02:5628,90497,264,43225,435,27802,232,320
13Dec 29, 2022 02:5629,04698,608,69025,560,63702,232,320