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 listMay 24, 2024 19:02CemaCemaScore: 281,570Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 24, 2024 19:02281,472305,234,537247,695,44602,236,416
2May 24, 2024 19:02281,570315,624,011247,781,85202,256,896
3May 24, 2024 19:02281,642307,119,473247,844,58302,252,800