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 8, 2026 17:38Victor MerckléVictor MerckléScore: 3,593Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2026 17:423,56311,063,4083,136,00002,117,632stderr
2Jul 8, 2026 17:423,57611,033,5593,147,00002,117,632stderr
3Jul 8, 2026 17:423,58011,033,8173,151,00002,117,632stderr
4Jul 8, 2026 17:423,58011,070,2483,151,00002,117,632stderr
5Jul 8, 2026 17:423,59311,059,6273,162,00002,117,632stderr
6Jul 8, 2026 17:423,60312,395,2083,171,00002,117,632stderr
7Jul 8, 2026 17:423,67011,137,8283,230,00002,117,632stderr
8Jul 8, 2026 17:423,67111,076,9983,231,00002,117,632stderr
9Jul 8, 2026 17:423,67611,034,0103,235,00002,117,632stderr