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 listJul 8, 2026 08:04Victor MerckléVictor MerckléScore: 3,743Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2026 08:063,64611,069,5363,209,00002,117,632stderr
2Jul 8, 2026 08:063,65711,102,8873,219,00002,117,632stderr
3Jul 8, 2026 08:063,67311,121,3503,233,00002,117,632stderr
4Jul 8, 2026 08:063,67611,131,8673,235,00002,117,632stderr
5Jul 8, 2026 08:063,74311,523,4143,294,00002,117,632stderr
6Jul 8, 2026 08:063,74311,468,9923,294,00002,117,632stderr
7Jul 8, 2026 08:063,74811,089,9323,299,00002,117,632stderr
8Jul 8, 2026 08:063,75711,133,4263,307,00002,117,632stderr
9Jul 8, 2026 08:063,76311,544,8143,312,00002,117,632stderr