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 20, 2026 00:10Johan SannemoJohan SannemoScore: 28,627Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2026 00:1028,62346,661,15424,181,0001,007,0002,265,088
2Jan 20, 2026 00:1028,62750,673,15824,185,0001,007,0002,281,472
3Jan 20, 2026 00:1028,81653,100,84323,330,0002,028,0002,277,376