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 23, 2026 15:47Victor MerckléVictor MerckléScore: 5,977Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 15:505,85312,790,9155,151,00002,117,632stderr
2Jun 23, 2026 15:505,85412,799,0625,152,00002,117,632stderr
3Jun 23, 2026 15:505,86212,772,9435,159,00002,117,632stderr
4Jun 23, 2026 15:505,89812,713,1645,191,00002,117,632stderr
5Jun 23, 2026 15:505,97713,116,0435,260,00002,117,632stderr
6Jun 23, 2026 15:505,98112,811,0545,264,00002,117,632stderr
7Jun 23, 2026 15:505,99313,158,6415,274,00002,117,632stderr
8Jun 23, 2026 15:506,01312,730,4255,292,00002,117,632stderr
9Jun 23, 2026 15:506,06813,178,9415,340,00002,117,632stderr