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 19:14Victor MerckléVictor MerckléScore: 4,714Success
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 19:164,58611,855,9254,036,00002,117,632stderr
2Jul 4, 2026 19:164,59211,839,6084,041,00002,117,632stderr
3Jul 4, 2026 19:164,71311,926,9594,148,00002,117,632stderr
4Jul 4, 2026 19:164,71411,995,1424,149,00002,117,632stderr
5Jul 4, 2026 19:164,71412,269,5254,149,00002,117,632stderr
6Jul 4, 2026 19:164,71511,947,2624,150,00002,117,632stderr
7Jul 4, 2026 19:164,72011,872,8164,154,00002,117,632stderr
8Jul 4, 2026 19:164,72111,929,5884,155,00002,117,632stderr
9Jul 4, 2026 19:164,78811,998,1844,214,00002,117,632stderr