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 18:45Victor MerckléVictor MerckléScore: 4,569Success
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 18:474,44411,757,5353,911,00002,117,632stderr
2Jul 4, 2026 18:474,45311,761,6253,919,00002,117,632stderr
3Jul 4, 2026 18:474,46911,792,1963,933,00002,117,632stderr
4Jul 4, 2026 18:474,51911,843,8493,977,00002,117,632stderr
5Jul 4, 2026 18:474,56911,782,4034,021,00002,117,632stderr
6Jul 4, 2026 18:474,57511,780,3224,026,00002,117,632stderr
7Jul 4, 2026 18:474,58011,810,6694,031,00002,117,632stderr
8Jul 4, 2026 18:475,06012,232,2094,453,00002,117,632stderr
9Jul 4, 2026 18:475,11512,401,2354,502,00002,117,632stderr