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 listJun 9, 2026 19:55Victor MerckléVictor MerckléScore: 8,913Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 9, 2026 20:018,87116,415,8056,553,0001,254,0002,134,016
2Jun 9, 2026 20:018,89316,528,2586,434,0001,392,0002,134,016
3Jun 9, 2026 20:018,89316,515,0086,456,0001,370,0002,134,016
4Jun 9, 2026 20:018,90416,489,0756,465,0001,371,0002,134,016
5Jun 9, 2026 20:018,91316,580,9106,469,0001,375,0002,134,016
6Jun 9, 2026 20:018,95116,908,0946,597,0001,280,0002,134,016
7Jun 9, 2026 20:018,95516,650,1326,523,0001,358,0002,134,016
8Jun 9, 2026 20:018,98616,579,5716,646,0001,262,0002,134,016
9Jun 9, 2026 20:019,21316,918,4516,694,0001,414,0002,134,016