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 3, 2026 22:55Victor MerckléVictor MerckléScore: 5,645Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2026 22:585,55012,764,5134,884,00002,117,632stderr
2Jul 3, 2026 22:585,56512,760,7334,898,00002,117,632stderr
3Jul 3, 2026 22:585,63112,826,0134,956,00002,117,632stderr
4Jul 3, 2026 22:585,63912,904,0124,963,00002,117,632stderr
5Jul 3, 2026 22:585,64512,930,8644,968,00002,117,632stderr
6Jul 3, 2026 22:585,65112,838,6994,973,00002,117,632stderr
7Jul 3, 2026 22:585,67612,832,4854,995,00002,117,632stderr
8Jul 3, 2026 22:585,75112,845,5355,061,00002,117,632stderr
9Jul 3, 2026 22:585,75913,284,7595,068,00002,117,632stderr