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 24, 2026 00:34Dominique GarmierDominique GarmierScore: 49,980Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 24, 2026 00:3449,17666,066,06137,237,0006,038,0002,375,680
2Mar 24, 2026 00:3449,98073,918,01539,984,0003,998,0002,306,048
3Mar 24, 2026 00:3450,53170,233,76240,425,0004,042,0002,514,944