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 15, 2026 10:32Dominique GarmierDominique GarmierScore: 51,011Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 15, 2026 10:3251,01073,583,84243,892,000997,0002,383,872
2Mar 15, 2026 10:3251,01171,663,74142,895,0001,995,0002,281,472
3Mar 15, 2026 10:3251,41671,751,31544,241,0001,005,0002,281,472