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 27, 2022 12:13Robert BurkeRobert BurkeScore: 36,511Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 27, 2022 12:1334,90582,335,55130,716,12002,224,128
2Dec 27, 2022 12:1334,905106,547,82230,716,07402,232,320
3Dec 27, 2022 12:1334,93085,976,37730,738,67602,228,224
4Dec 27, 2022 12:1336,25157,907,33729,908,0001,993,0002,273,280
5Dec 27, 2022 12:1336,40354,787,32430,033,0002,002,0002,273,280
6Dec 27, 2022 12:1336,49352,445,17029,104,0003,010,0002,502,656
7Dec 27, 2022 12:1336,51154,338,27931,126,0001,004,0002,486,272
8Dec 27, 2022 12:1336,55553,187,01830,158,0002,010,0002,465,792
9Dec 27, 2022 12:1336,62755,358,53930,218,0002,014,0002,273,280
10Dec 27, 2022 12:1336,64759,198,82730,234,0002,015,0002,396,160
11Dec 27, 2022 12:1336,69957,748,75830,277,0002,018,0002,273,280
12Dec 27, 2022 12:1336,78157,402,85132,367,00002,273,280