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 listJan 19, 2026 21:10Johan SannemoJohan SannemoScore: 37,117Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 19, 2026 21:1037,03654,428,98531,574,0001,018,0002,281,472
2Jan 19, 2026 21:1037,05054,530,52231,586,0001,018,0002,281,472
3Jan 19, 2026 21:1037,06058,345,11131,594,0001,019,0002,375,680
4Jan 19, 2026 21:1037,06954,063,83932,621,00002,281,472
5Jan 19, 2026 21:1037,11756,166,35131,643,0001,020,0002,281,472
6Jan 19, 2026 21:1037,12260,222,06631,647,0001,020,0002,281,472
7Jan 19, 2026 21:1037,15760,209,18831,677,0001,021,0002,281,472
8Jan 19, 2026 21:1037,17659,243,43931,693,0001,022,0002,523,136
9Jan 19, 2026 21:1037,39257,874,41831,908,000997,0002,281,472