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 1, 2026 18:51Victor MerckléVictor MerckléScore: 4,895Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 1, 2026 18:544,86712,019,2704,283,00002,117,632stderr
2Jul 1, 2026 18:544,88012,115,0794,295,00002,117,632stderr
3Jul 1, 2026 18:544,88412,050,4274,298,00002,117,632stderr
4Jul 1, 2026 18:544,88812,029,0184,302,00002,117,632stderr
5Jul 1, 2026 18:544,89512,071,5884,308,00002,117,632stderr
6Jul 1, 2026 18:544,97512,037,4214,378,00002,117,632stderr
7Jul 1, 2026 18:544,99012,208,1704,392,00002,117,632stderr
8Jul 1, 2026 18:545,00412,116,6014,404,00002,117,632stderr
9Jul 1, 2026 18:545,15612,283,0454,538,00002,117,632stderr