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 listJan 2, 2025 22:40zielajzielajScore: 3,778Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2025 22:403,77524,612,6582,215,0001,107,0002,412,544
2Jan 2, 2025 22:403,77818,155,2792,217,0001,108,0002,412,544
3Jan 2, 2025 22:403,81517,686,6532,238,0001,119,0002,404,352