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 listFeb 4, 2026 17:11vahookvahookScore: 3,580Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 17:113,57719,578,0051,049,0002,099,0002,486,272
2Feb 4, 2026 17:113,58020,132,3711,050,0002,100,0002,277,376
3Feb 4, 2026 17:113,61817,774,0411,061,0002,123,0002,277,376