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 10, 2025 00:52zielajzielajScore: 3,659Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 10, 2025 00:523,57723,487,6782,099,0001,049,0002,347,008
2Jan 10, 2025 00:523,65918,890,1312,147,0001,073,0002,281,472
3Jan 10, 2025 00:524,47024,470,3382,951,000983,0002,351,104