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 listJul 22, 2023 14:45gchebanovgchebanovScore: 173,065Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 22, 2023 14:45172,621221,270,772151,906,44502,207,744
2Jul 22, 2023 14:45173,065208,765,934152,296,77302,195,456
3Jul 22, 2023 14:45174,068218,307,279153,179,68802,220,032