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

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 19:095,05312,171,0904,447,00002,113,536
2Jun 27, 2026 19:095,16912,223,4484,549,00002,113,536
3Jun 27, 2026 19:095,17012,256,5044,550,00002,113,536
4Jun 27, 2026 19:095,17312,223,2654,553,00002,113,536
5Jun 27, 2026 19:095,17612,233,9664,555,00002,113,536
6Jun 27, 2026 19:095,17612,223,0034,555,00002,113,536
7Jun 27, 2026 19:095,18012,208,3334,559,00002,113,536
8Jun 27, 2026 19:095,18612,462,4064,564,00002,113,536
9Jun 27, 2026 19:095,25712,305,7524,627,00002,113,536