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 19:02Johan SannemoJohan SannemoScore: 123,867Success
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 19:02123,245129,055,865107,452,0001,004,0002,281,472
2Jan 19, 2026 19:02123,528135,844,382108,705,00002,281,472
3Jan 19, 2026 19:02123,682134,958,047107,842,000998,0002,281,472
4Jan 19, 2026 19:02123,725131,114,231108,878,00002,273,280
5Jan 19, 2026 19:02123,867131,729,785108,003,0001,000,0002,281,472
6Jan 19, 2026 19:02123,906130,654,463107,037,0002,000,0002,281,472
7Jan 19, 2026 19:02123,947133,755,118108,073,0001,000,0002,281,472
8Jan 19, 2026 19:02124,106133,587,832107,210,0002,003,0002,273,280
9Jan 19, 2026 19:02124,359137,864,507108,432,0001,004,0002,527,232