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 26, 2026 19:26Victor MerckléVictor MerckléScore: 5,220Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2026 19:295,10311,997,3264,491,00002,117,632stderr
2Jun 26, 2026 19:295,13512,054,9654,519,00002,117,632stderr
3Jun 26, 2026 19:295,19412,015,2304,571,00002,117,632stderr
4Jun 26, 2026 19:295,21012,385,0024,585,00002,117,632stderr
5Jun 26, 2026 19:295,22012,465,2664,594,00002,117,632stderr
6Jun 26, 2026 19:295,23412,311,9464,606,00002,117,632stderr
7Jun 26, 2026 19:295,23812,447,0384,610,00002,117,632stderr
8Jun 26, 2026 19:295,24613,745,8854,617,00002,117,632stderr
9Jun 26, 2026 19:295,33212,526,8384,693,00002,117,632stderr