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 2, 2026 11:20Victor MerckléVictor MerckléScore: 5,090Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 11:234,95712,139,6444,363,00002,117,632stderr
2Jul 2, 2026 11:234,95912,124,8664,364,00002,117,632stderr
3Jul 2, 2026 11:235,07512,232,4314,466,00002,117,632stderr
4Jul 2, 2026 11:235,08012,192,6584,471,00002,117,632stderr
5Jul 2, 2026 11:235,09012,162,2444,480,00002,117,632stderr
6Jul 2, 2026 11:235,09512,162,5824,484,00002,117,632stderr
7Jul 2, 2026 11:235,11512,202,4484,502,00002,117,632stderr
8Jul 2, 2026 11:235,11512,479,3524,502,00002,117,632stderr
9Jul 2, 2026 11:235,45012,559,0324,796,00002,117,632stderr