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 9, 2026 19:00Victor MerckléVictor MerckléScore: 3,680Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 9, 2026 19:023,57311,035,1803,145,00002,117,632stderr
2Jul 9, 2026 19:023,58711,051,8923,157,00002,117,632stderr
3Jul 9, 2026 19:023,60111,059,4583,169,00002,117,632stderr
4Jul 9, 2026 19:023,60311,092,8483,171,00002,117,632stderr
5Jul 9, 2026 19:023,68011,038,9783,239,00002,117,632stderr
6Jul 9, 2026 19:023,69411,066,6403,251,00002,117,632stderr
7Jul 9, 2026 19:023,70111,130,5003,257,00002,117,632stderr
8Jul 9, 2026 19:023,73511,196,3123,287,00002,117,632stderr
9Jul 9, 2026 19:023,85011,195,4963,388,00002,117,632stderr