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 11, 2026 06:22Victor MerckléVictor MerckléScore: 7,192Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2026 06:257,01813,419,1586,176,00002,113,536
2Jun 11, 2026 06:257,02113,457,8946,179,00002,113,536
3Jun 11, 2026 06:257,10619,968,9796,254,00002,113,536
4Jun 11, 2026 06:257,13113,433,5086,276,00002,113,536
5Jun 11, 2026 06:257,19213,784,4646,329,00002,113,536
6Jun 11, 2026 06:257,26913,887,7546,397,00002,113,536
7Jun 11, 2026 06:257,27913,623,8266,406,00002,113,536
8Jun 11, 2026 06:257,40714,101,5786,519,00002,113,536
9Jun 11, 2026 06:257,45913,784,1546,564,00002,113,536