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 28, 2022 02:50Robert BurkeRobert BurkeScore: 20,370Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 02:5019,82193,736,60617,442,85802,228,224
2Dec 28, 2022 02:5019,84375,472,82217,461,75402,232,320
3Dec 28, 2022 02:5019,89074,533,34417,503,02002,232,320
4Dec 28, 2022 02:5020,20947,586,48217,784,00002,404,352
5Dec 28, 2022 02:5020,34342,339,36016,908,000994,0002,273,280
6Dec 28, 2022 02:5020,36737,824,90815,932,0001,991,0002,400,256
7Dec 28, 2022 02:5020,37037,111,12316,872,0001,054,0002,387,968
8Dec 28, 2022 02:5020,38043,597,60315,942,0001,992,0002,486,272
9Dec 28, 2022 02:5020,45144,253,25615,998,0001,999,0002,396,160
10Dec 28, 2022 02:5020,47038,728,79717,014,0001,000,0002,482,176
11Dec 28, 2022 02:5020,50339,683,97016,039,0002,004,0002,392,064
12Dec 28, 2022 02:5020,54841,423,39017,078,0001,004,0002,273,280