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 listJun 30, 2026 00:32Victor MerckléVictor MerckléScore: 5,145Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 30, 2026 00:355,05012,206,7064,444,00002,117,632stderr
2Jun 30, 2026 00:355,05012,197,5824,444,00002,117,632stderr
3Jun 30, 2026 00:355,05912,183,1014,452,00002,117,632stderr
4Jun 30, 2026 00:355,06512,172,1284,458,00002,117,632stderr
5Jun 30, 2026 00:355,14512,238,2134,528,00002,117,632stderr
6Jun 30, 2026 00:355,16712,262,0134,547,00002,117,632stderr
7Jun 30, 2026 00:355,18112,554,2754,560,00002,117,632stderr
8Jun 30, 2026 00:355,33212,404,0574,693,00002,117,632stderr
9Jun 30, 2026 00:355,69212,778,4855,009,00002,117,632stderr