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 17:12Johan SannemoJohan SannemoScore: 155,507Success
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 17:12155,084162,880,853136,474,00002,281,472
2Jan 19, 2026 17:12155,120159,221,506134,499,0002,007,0002,265,088
3Jan 19, 2026 17:12155,482161,617,346134,827,0001,997,0002,281,472
4Jan 19, 2026 17:12155,491163,626,507134,835,0001,997,0002,281,472
5Jan 19, 2026 17:12155,507161,598,067135,848,000998,0002,281,472
6Jan 19, 2026 17:12155,559161,115,063134,894,0001,998,0002,281,472
7Jan 19, 2026 17:12155,680165,864,271134,999,0001,999,0002,281,472
8Jan 19, 2026 17:12155,895160,128,599135,186,0002,002,0002,269,184
9Jan 19, 2026 17:12156,163159,317,149137,423,00002,281,472