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

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 6, 2026 18:533,85511,265,5303,393,00002,117,632stderr
2Jul 6, 2026 18:533,85611,231,8003,394,00002,117,632stderr
3Jul 6, 2026 18:533,85911,273,7373,396,00002,117,632stderr
4Jul 6, 2026 18:533,86311,268,5103,400,00002,117,632stderr
5Jul 6, 2026 18:533,86711,235,0163,403,00002,117,632stderr
6Jul 6, 2026 18:533,89611,356,3263,429,00002,117,632stderr
7Jul 6, 2026 18:533,91511,346,6333,446,00002,117,632stderr
8Jul 6, 2026 18:533,96311,419,3733,488,00002,117,632stderr
9Jul 6, 2026 18:534,02211,415,1483,540,00002,117,632stderr