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 listSep 19, 2026 13:23Andrew EpsteinAndrew EpsteinScore: 22,130Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 19, 2026 13:2922,07029,454,83018,373,0001,049,0002,125,824stderr
2Sep 19, 2026 13:2922,07929,666,82618,374,0001,056,0002,125,824stderr
3Sep 19, 2026 13:2922,09529,623,46018,381,0001,063,0002,125,824stderr
4Sep 19, 2026 13:2922,09829,556,53918,400,0001,047,0002,125,824stderr
5Sep 19, 2026 13:2922,13029,616,32318,421,0001,054,0002,125,824stderr
6Sep 19, 2026 13:2922,13129,569,51018,423,0001,053,0002,125,824stderr
7Sep 19, 2026 13:2922,18429,684,92818,474,0001,048,0002,125,824stderr
8Sep 19, 2026 13:2922,37940,769,88218,644,0001,050,0002,125,824stderr
9Sep 19, 2026 13:2922,46340,125,58418,715,0001,053,0002,125,824stderr