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 listSep 2, 2026 11:24Victor MerckléVictor MerckléScore: 3,140Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2026 11:293,04210,906,0922,677,00002,117,632stderr
2Sep 2, 2026 11:293,05510,909,9582,689,00002,117,632stderr
3Sep 2, 2026 11:293,13611,121,5742,760,00002,117,632stderr
4Sep 2, 2026 11:293,13911,524,3852,763,00002,117,632stderr
5Sep 2, 2026 11:293,14010,925,7482,764,00002,117,632stderr
6Sep 2, 2026 11:293,14011,496,0632,764,00002,117,632stderr
7Sep 2, 2026 11:293,15010,981,3852,772,00002,117,632stderr
8Sep 2, 2026 11:293,15110,933,1282,773,00002,117,632stderr
9Sep 2, 2026 11:293,16310,976,4272,784,00002,117,632stderr