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 3, 2026 13:48Victor MerckléVictor MerckléScore: 4,531Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2026 13:514,41011,674,5153,881,00002,117,632stderr
2Jul 3, 2026 13:514,42711,661,6543,896,00002,117,632stderr
3Jul 3, 2026 13:514,50612,062,3973,966,00002,117,632stderr
4Jul 3, 2026 13:514,52211,694,6763,980,00002,117,632stderr
5Jul 3, 2026 13:514,53111,945,2843,988,00002,117,632stderr
6Jul 3, 2026 13:514,54212,031,9743,997,00002,117,632stderr
7Jul 3, 2026 13:514,54712,007,2904,002,00002,117,632stderr
8Jul 3, 2026 13:514,54711,699,9134,002,00002,117,632stderr
9Jul 3, 2026 13:514,58111,832,6154,032,00002,117,632stderr