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 27, 2026 15:04Dominique GarmierDominique GarmierScore: 516,764Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 27, 2026 15:04516,141479,844,058453,204,0001,000,0002,338,816
2Mar 27, 2026 15:04516,764485,272,418452,754,0001,998,0002,396,160
3Mar 27, 2026 15:04517,644485,063,187455,527,00002,404,352