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:18Victor MerckléVictor MerckléScore: 30,689Success
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:1830,56355,114,16925,899,000996,0002,392,064
2Apr 18, 2026 21:1830,56758,087,20724,907,0001,992,0002,404,352
3Apr 18, 2026 21:1830,60853,922,50124,940,0001,995,0002,269,184
4Apr 18, 2026 21:1830,65251,128,67125,975,000999,0002,396,160
5Apr 18, 2026 21:1830,68949,864,47125,006,0002,000,0002,269,184
6Apr 18, 2026 21:1830,70651,808,45726,021,0001,000,0002,269,184
7Apr 18, 2026 21:1830,70849,583,49125,022,0002,001,0002,396,160
8Apr 18, 2026 21:1830,72549,901,56325,036,0002,002,0002,400,256
9Apr 18, 2026 21:1830,80554,029,18926,104,0001,004,0002,273,280