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 7, 2026 01:41Victor MerckléVictor MerckléScore: 7,487Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2026 01:447,40313,828,8626,515,00002,113,536
2Jun 7, 2026 01:447,40413,837,2646,516,00002,113,536
3Jun 7, 2026 01:447,48513,835,6786,587,00002,113,536
4Jun 7, 2026 01:447,48614,162,9456,588,00002,113,536
5Jun 7, 2026 01:447,48713,908,6416,589,00002,113,536
6Jun 7, 2026 01:447,48813,942,8586,590,00002,113,536
7Jun 7, 2026 01:447,49614,253,0686,597,00002,113,536
8Jun 7, 2026 01:447,56013,958,5106,653,00002,113,536
9Jun 7, 2026 01:447,60215,519,3496,690,00002,113,536