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 03:55Victor MerckléVictor MerckléScore: 4,048Success
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 03:583,95011,288,9423,476,00002,117,632stderr
2Jul 6, 2026 03:583,96811,327,1913,492,00002,117,632stderr
3Jul 6, 2026 03:583,97711,319,0213,500,00002,117,632stderr
4Jul 6, 2026 03:584,00211,394,8243,522,00002,117,632stderr
5Jul 6, 2026 03:584,04811,601,6413,563,00002,117,632stderr
6Jul 6, 2026 03:584,05211,279,5503,566,00002,117,632stderr
7Jul 6, 2026 03:584,05411,782,1463,568,00002,117,632stderr
8Jul 6, 2026 03:584,06111,824,1673,574,00002,117,632stderr
9Jul 6, 2026 03:584,06111,656,1033,574,00002,117,632stderr