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:09Victor MerckléVictor MerckléError
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:12011,119,1283,296,00002,117,632expected "51097422579289 ", got "51095275095702 "stderr
2Jul 8, 2026 08:123,62811,092,2053,193,00002,117,632stderr
3Jul 8, 2026 08:123,65411,068,1763,216,00002,117,632stderr
4Jul 8, 2026 08:123,67111,128,6873,231,00002,117,632stderr
5Jul 8, 2026 08:123,75111,079,9183,301,00002,117,632stderr
6Jul 8, 2026 08:123,75911,086,0813,308,00002,117,632stderr
7Jul 8, 2026 08:123,77011,130,6913,318,00002,117,632stderr
8Jul 8, 2026 08:123,78211,241,8583,329,00002,117,632stderr
9Jul 8, 2026 08:123,88511,202,3553,419,00002,117,632stderr