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 2, 2022 17:38Robert BurkeRobert BurkeScore: 36,782Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 2, 2022 17:3835,45698,318,47031,201,17502,232,320
2Aug 2, 2022 17:3835,472100,492,29131,215,34502,232,320
3Aug 2, 2022 17:3835,54289,200,69931,277,02602,232,320
4Aug 2, 2022 17:3836,48252,155,44231,101,0001,003,0002,490,368
5Aug 2, 2022 17:3836,77252,589,58031,348,0001,011,0002,281,472
6Aug 2, 2022 17:3836,78163,397,31331,356,0001,011,0002,281,472
7Aug 2, 2022 17:3836,78254,153,47131,357,0001,011,0002,281,472
8Aug 2, 2022 17:3836,78450,355,14632,370,00002,396,160
9Aug 2, 2022 17:3836,79253,671,62032,377,00002,392,064
10Aug 2, 2022 17:3836,79460,336,19032,379,00002,510,848
11Aug 2, 2022 17:3836,95253,751,03732,518,00002,392,064
12Aug 2, 2022 17:3836,95754,772,56232,522,00002,281,472