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 22:17Victor MerckléVictor MerckléScore: 3,750Success
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 22:203,73111,154,4843,284,00002,125,824stderr
2Jul 6, 2026 22:203,73411,152,3723,286,00002,117,632stderr
3Jul 6, 2026 22:203,74711,205,9923,298,00002,125,824stderr
4Jul 6, 2026 22:203,74711,145,1493,298,00002,125,824stderr
5Jul 6, 2026 22:203,75011,164,0843,300,00002,125,824stderr
6Jul 6, 2026 22:203,75511,180,4303,305,00002,125,824stderr
7Jul 6, 2026 22:203,84411,214,4303,383,00002,125,824stderr
8Jul 6, 2026 22:203,84511,309,8493,384,00002,117,632stderr
9Jul 6, 2026 22:203,86411,245,3063,401,00002,117,632stderr