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 5, 2026 00:35Victor MerckléVictor MerckléScore: 4,555Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2026 00:374,42611,739,5743,895,00002,117,632stderr
2Jul 5, 2026 00:374,42811,705,6103,897,00002,117,632stderr
3Jul 5, 2026 00:374,44711,760,0343,914,00002,117,632stderr
4Jul 5, 2026 00:374,53811,762,4063,994,00002,117,632stderr
5Jul 5, 2026 00:374,55511,760,0084,009,00002,117,632stderr
6Jul 5, 2026 00:374,56111,760,1304,014,00002,117,632stderr
7Jul 5, 2026 00:374,56512,106,0274,018,00002,117,632stderr
8Jul 5, 2026 00:374,72812,331,1194,161,00002,117,632stderr
9Jul 5, 2026 00:374,78612,059,8414,212,00002,117,632stderr