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 26, 2026 23:06Victor MerckléVictor MerckléScore: 5,257Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2026 23:095,24212,099,3534,613,00002,117,632stderr
2Jun 26, 2026 23:095,24512,145,4564,616,00002,117,632stderr
3Jun 26, 2026 23:095,24712,159,0924,618,00002,117,632stderr
4Jun 26, 2026 23:095,25612,182,3054,626,00002,117,632stderr
5Jun 26, 2026 23:095,25712,112,2874,627,00002,117,632stderr
6Jun 26, 2026 23:095,35512,171,6384,713,00002,117,632stderr
7Jun 26, 2026 23:095,37012,209,8114,726,00002,117,632stderr
8Jun 26, 2026 23:095,68912,462,5655,007,00002,117,632stderr
9Jun 26, 2026 23:095,72112,571,5965,035,00002,117,632stderr