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 listJul 4, 2026 19:54Victor MerckléVictor MerckléScore: 4,519Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 19:574,38611,706,4933,860,00002,117,632stderr
2Jul 4, 2026 19:574,41511,688,2143,886,00002,117,632stderr
3Jul 4, 2026 19:574,50311,734,1663,963,00002,117,632stderr
4Jul 4, 2026 19:574,51311,786,3503,972,00002,117,632stderr
5Jul 4, 2026 19:574,51911,753,1853,977,00002,117,632stderr
6Jul 4, 2026 19:574,52311,753,8003,981,00002,117,632stderr
7Jul 4, 2026 19:574,52611,747,8083,983,00002,117,632stderr
8Jul 4, 2026 19:574,53512,106,4863,991,00002,117,632stderr
9Jul 4, 2026 19:574,69411,979,9484,131,00002,117,632stderr