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 10:33Johan SannemoJohan SannemoScore: 19,340Success
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 10:3319,22238,494,85115,920,000995,0002,359,296
2Jan 20, 2026 10:3319,34050,739,98415,017,0002,002,0002,510,848
3Jan 20, 2026 10:3319,34243,572,30014,018,0003,003,0002,301,952