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 23:50Victor MerckléVictor MerckléScore: 3,621Success
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 23:533,60511,062,9033,173,00002,117,632stderr
2Jul 6, 2026 23:533,60711,127,5253,175,00002,117,632stderr
3Jul 6, 2026 23:533,61711,107,8483,183,00002,117,632stderr
4Jul 6, 2026 23:533,61811,096,8363,184,00002,117,632stderr
5Jul 6, 2026 23:533,62111,096,5963,187,00002,117,632stderr
6Jul 6, 2026 23:533,62211,058,8923,188,00002,117,632stderr
7Jul 6, 2026 23:533,63111,083,4683,196,00002,117,632stderr
8Jul 6, 2026 23:533,68011,056,1053,239,00002,117,632stderr
9Jul 6, 2026 23:533,72011,052,4683,274,00002,117,632stderr