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 18:12Victor MerckléVictor MerckléScore: 5,215Success
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 18:155,10612,017,5564,494,00002,113,536
2Jun 23, 2026 18:155,10611,978,7604,494,00002,113,536
3Jun 23, 2026 18:155,12112,034,3144,507,00002,113,536
4Jun 23, 2026 18:155,20612,052,0754,582,00002,113,536
5Jun 23, 2026 18:155,21512,036,7794,590,00002,113,536
6Jun 23, 2026 18:155,23412,005,3644,606,00002,113,536
7Jun 23, 2026 18:155,23512,078,7584,607,00002,113,536
8Jun 23, 2026 18:155,25012,434,2244,620,00002,113,536
9Jun 23, 2026 18:155,44012,249,4054,788,00002,113,536