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 listApr 18, 2026 21:22Victor MerckléVictor MerckléScore: 30,684Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 21:2230,57551,852,65826,906,00002,269,184
2Apr 18, 2026 21:2230,59156,615,88624,926,0001,994,0002,269,184
3Apr 18, 2026 21:2230,61152,445,94024,943,0001,995,0002,269,184
4Apr 18, 2026 21:2230,61651,234,62724,947,0001,995,0002,269,184
5Apr 18, 2026 21:2230,68450,355,96926,002,0001,000,0002,396,160
6Apr 18, 2026 21:2230,70150,339,07926,017,0001,000,0002,269,184
7Apr 18, 2026 21:2230,70949,865,72426,024,0001,000,0002,273,280
8Apr 18, 2026 21:2230,71049,371,65025,024,0002,001,0002,269,184
9Apr 18, 2026 21:2230,88149,812,91625,162,0002,013,0002,273,280