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 listMar 21, 2026 20:11Dominique GarmierDominique GarmierScore: 193,720Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 21, 2026 20:11193,599194,806,551169,365,0001,002,0002,469,888
2Mar 21, 2026 20:11193,720193,982,764170,474,00002,330,624
3Mar 21, 2026 20:11194,399205,893,996170,071,0001,000,0002,334,720