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 19, 2026 18:08Victor MerckléVictor MerckléScore: 7,051Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2026 18:106,94213,551,6136,109,00002,113,536
2Jun 19, 2026 18:106,94713,609,4626,114,00002,113,536
3Jun 19, 2026 18:106,96913,382,5516,133,00002,113,536
4Jun 19, 2026 18:107,04413,636,4016,199,00002,113,536
5Jun 19, 2026 18:107,05113,885,2026,205,00002,113,536
6Jun 19, 2026 18:107,05613,661,6776,210,00002,113,536
7Jun 19, 2026 18:107,07714,025,1956,228,00002,113,536
8Jun 19, 2026 18:107,13013,965,1646,275,00002,113,536
9Jun 19, 2026 18:107,21313,778,9156,348,00002,113,536