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 3, 2026 02:36Victor MerckléVictor MerckléScore: 4,517Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2026 02:384,42311,691,5303,893,00002,117,632stderr
2Jul 3, 2026 02:384,43011,612,5723,899,00002,117,632stderr
3Jul 3, 2026 02:384,44211,728,8313,909,00002,117,632stderr
4Jul 3, 2026 02:384,44611,657,5093,913,00002,117,632stderr
5Jul 3, 2026 02:384,51711,736,5553,975,00002,117,632stderr
6Jul 3, 2026 02:384,53711,715,3923,993,00002,117,632stderr
7Jul 3, 2026 02:384,56012,027,2514,013,00002,117,632stderr
8Jul 3, 2026 02:384,58511,726,2294,035,00002,117,632stderr
9Jul 3, 2026 02:384,89712,079,9534,310,00002,117,632stderr