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 7, 2026 18:06Victor MerckléVictor MerckléScore: 3,688Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 18:093,59411,067,2643,163,00002,117,632stderr
2Jul 7, 2026 18:093,59511,040,8053,164,00002,117,632stderr
3Jul 7, 2026 18:093,59612,628,0113,165,00002,117,632stderr
4Jul 7, 2026 18:093,66011,089,7483,221,00002,117,632stderr
5Jul 7, 2026 18:093,68811,054,5523,246,00002,117,632stderr
6Jul 7, 2026 18:093,68911,022,1403,247,00002,117,632stderr
7Jul 7, 2026 18:093,69211,043,5243,249,00002,117,632stderr
8Jul 7, 2026 18:093,69411,092,5403,251,00002,117,632stderr
9Jul 7, 2026 18:093,69711,408,4803,254,00002,117,632stderr