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 listAug 3, 2022 14:44Robert BurkeRobert BurkeScore: 36,822Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 3, 2022 14:4435,641110,257,98731,364,25602,240,512
2Aug 3, 2022 14:4435,70391,015,07731,418,58602,232,320
3Aug 3, 2022 14:4435,709125,286,10431,424,26602,236,416
4Aug 3, 2022 14:4436,59060,599,56031,193,0001,006,0002,396,160
5Aug 3, 2022 14:4436,75353,344,06031,333,0001,010,0002,273,280
6Aug 3, 2022 14:4436,76056,711,69631,339,0001,010,0002,273,280
7Aug 3, 2022 14:4436,82260,384,97031,391,0001,012,0002,273,280
8Aug 3, 2022 14:4437,10357,364,20431,631,0001,020,0002,396,160
9Aug 3, 2022 14:4437,18661,247,75632,724,00002,392,064
10Aug 3, 2022 14:4437,19759,088,91632,733,00002,273,280
11Aug 3, 2022 14:4437,24458,163,15832,775,00002,273,280
12Aug 3, 2022 14:4437,26165,264,43832,790,00002,273,280