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 14, 2026 22:16olliecrowolliecrowScore: 20,620Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 14, 2026 22:1620,60040,905,46716,114,0002,014,0002,498,560
2Feb 14, 2026 22:1620,60134,192,50316,115,0002,014,0002,502,656
3Feb 14, 2026 22:1620,61339,053,40317,132,0001,007,0002,506,752
4Feb 14, 2026 22:1620,61545,624,87817,134,0001,007,0002,502,656
5Feb 14, 2026 22:1620,62035,903,17216,130,0002,016,0002,506,752
6Feb 14, 2026 22:1620,65533,779,91817,167,0001,009,0002,498,560
7Feb 14, 2026 22:1620,71833,965,71118,232,00002,498,560
8Feb 14, 2026 22:1620,77244,373,53218,279,00002,498,560
9Feb 14, 2026 22:1620,88445,643,06818,378,00002,322,432