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 listJul 31, 2022 16:03Robert BurkeRobert BurkeScore: 38,515Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2022 16:0337,88952,621,31132,332,0001,010,0002,273,280
2Jul 31, 2022 16:0337,95762,526,20133,402,00002,535,424
3Jul 31, 2022 16:0338,07857,300,94533,509,00002,531,328
4Jul 31, 2022 16:0338,17054,276,53632,573,0001,017,0002,535,424
5Jul 31, 2022 16:0338,43158,090,60633,819,00002,437,120
6Jul 31, 2022 16:0338,51455,555,23830,902,0002,990,0002,437,120
7Jul 31, 2022 16:0338,51559,380,16031,900,0001,993,0002,445,312
8Jul 31, 2022 16:0338,52457,196,10333,901,00002,306,048
9Jul 31, 2022 16:0339,07564,292,74132,364,0002,022,0002,445,312
10Jul 31, 2022 16:0340,17595,491,89035,354,22902,289,664
11Jul 31, 2022 16:0340,396103,244,89435,548,74702,256,896
12Jul 31, 2022 16:0340,59292,275,71935,720,58602,289,664