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 listJun 14, 2024 00:11Alexander SpeshilovAlexander SpeshilovScore: 13,195,087Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 14, 2024 00:1113,166,49311,652,866,59711,586,513,86002,260,992
2Jun 14, 2024 00:1113,195,08711,669,139,49111,611,676,21502,256,896
3Jun 14, 2024 00:1113,234,87811,716,322,04011,646,692,61802,260,992