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 06:21apuxbtapuxbtScore: 33,752Success
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 06:2132,92996,624,20828,977,39202,232,320
2Dec 1, 2022 06:2133,01995,927,93429,057,11302,240,512
3Dec 1, 2022 06:2133,063106,652,83629,095,78302,236,416
4Dec 1, 2022 06:2133,63649,083,71328,580,0001,020,0002,510,848
5Dec 1, 2022 06:2133,64754,603,57728,588,0001,021,0002,387,968
6Dec 1, 2022 06:2133,73358,224,75828,662,0001,023,0002,392,064
7Dec 1, 2022 06:2133,75256,762,23128,678,0001,024,0002,265,088
8Dec 1, 2022 06:2133,75854,716,85529,707,00002,506,752
9Dec 1, 2022 06:2133,76356,803,50129,711,00002,383,872
10Dec 1, 2022 06:2133,76458,982,24628,688,0001,024,0002,265,088
11Dec 1, 2022 06:2133,78960,780,64328,709,0001,025,0002,269,184
12Dec 1, 2022 06:2133,80056,646,99728,719,0001,025,0002,392,064