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 19:57Victor MerckléVictor MerckléScore: 4,623Success
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 19:594,58611,840,0434,036,00002,117,632stderr
2Jul 2, 2026 19:594,59811,824,6794,047,00002,117,632stderr
3Jul 2, 2026 19:594,60211,819,2704,050,00002,117,632stderr
4Jul 2, 2026 19:594,61011,839,1804,057,00002,117,632stderr
5Jul 2, 2026 19:594,62311,843,9624,069,00002,117,632stderr
6Jul 2, 2026 19:594,69011,888,8174,128,00002,117,632stderr
7Jul 2, 2026 19:594,71711,869,4814,151,00002,117,632stderr
8Jul 2, 2026 19:594,72311,911,5474,157,00002,117,632stderr
9Jul 2, 2026 19:594,74211,907,7634,173,00002,117,632stderr