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 listSep 2, 2026 16:01Victor MerckléVictor MerckléScore: 5,301Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2026 16:035,19512,904,3814,572,00002,117,632stderr
2Sep 2, 2026 16:035,20612,920,7564,582,00002,117,632stderr
3Sep 2, 2026 16:035,22013,028,8104,594,00002,117,632stderr
4Sep 2, 2026 16:035,28112,844,2714,648,00002,117,632stderr
5Sep 2, 2026 16:035,30112,887,9514,665,00002,117,632stderr
6Sep 2, 2026 16:035,30312,938,2284,667,00002,117,632stderr
7Sep 2, 2026 16:035,31314,300,1784,676,00002,117,632stderr
8Sep 2, 2026 16:035,33713,601,7534,697,00002,117,632stderr
9Sep 2, 2026 16:035,36513,504,2684,722,00002,117,632stderr