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 8, 2026 21:47Victor MerckléVictor MerckléScore: 7,521Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2026 21:517,41014,051,0696,521,00002,113,536
2Jun 8, 2026 21:517,44714,154,3296,554,00002,113,536
3Jun 8, 2026 21:517,51714,113,5076,615,00002,113,536
4Jun 8, 2026 21:517,51914,009,7226,617,00002,113,536
5Jun 8, 2026 21:517,52117,210,8006,619,00002,113,536
6Jun 8, 2026 21:517,52213,937,8476,620,00002,113,536
7Jun 8, 2026 21:517,52614,146,6506,623,00002,113,536
8Jun 8, 2026 21:517,55214,003,7096,646,00002,113,536
9Jun 8, 2026 21:517,71514,313,6276,790,00002,113,536