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 23, 2026 16:14Victor MerckléVictor MerckléScore: 5,210Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 16:175,10111,997,2254,489,00002,113,536
2Jun 23, 2026 16:175,10212,272,0704,490,00002,113,536
3Jun 23, 2026 16:175,18212,035,5684,561,00002,113,536
4Jun 23, 2026 16:175,19312,043,1484,570,00002,113,536
5Jun 23, 2026 16:175,21012,344,7094,585,00002,113,536
6Jun 23, 2026 16:175,21312,324,8534,588,00002,113,536
7Jun 23, 2026 16:175,21412,186,0634,589,00002,113,536
8Jun 23, 2026 16:175,29012,405,6394,656,00002,113,536
9Jun 23, 2026 16:175,45312,583,7964,799,00002,113,536