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 16, 2026 00:09zielajzielajScore: 3,644Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 16, 2026 00:093,63420,861,1861,066,0002,132,0002,375,680
2Feb 16, 2026 00:093,64418,903,6032,138,0001,069,0002,379,776
3Feb 16, 2026 00:093,73320,173,2841,095,0002,190,0002,539,520