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:31Johan SannemoJohan SannemoScore: 17,098Success
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:3117,03537,369,23111,993,0002,998,0002,367,488
2Jan 20, 2026 10:3117,09843,635,80513,040,0002,006,0002,289,664
3Jan 20, 2026 10:3117,12532,323,37212,056,0003,014,0002,289,664