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 4, 2026 21:23Victor MerckléVictor MerckléScore: 4,523Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 21:254,38911,700,5863,863,00002,117,632stderr
2Jul 4, 2026 21:254,39511,668,3233,868,00002,117,632stderr
3Jul 4, 2026 21:254,40211,647,2203,874,00002,117,632stderr
4Jul 4, 2026 21:254,40611,727,0703,878,00002,117,632stderr
5Jul 4, 2026 21:254,52311,728,5863,981,00002,117,632stderr
6Jul 4, 2026 21:254,56412,120,3124,017,00002,117,632stderr
7Jul 4, 2026 21:254,58411,732,7604,034,00002,117,632stderr
8Jul 4, 2026 21:254,70411,962,8074,140,00002,117,632stderr
9Jul 4, 2026 21:254,91512,098,9174,326,00002,117,632stderr