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 29, 2026 18:09Victor MerckléVictor MerckléScore: 5,172Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2026 18:125,05412,099,2634,448,00002,117,632stderr
2Jun 29, 2026 18:125,06912,218,4144,461,00002,117,632stderr
3Jun 29, 2026 18:125,07512,214,6054,466,00002,117,632stderr
4Jun 29, 2026 18:125,07712,250,4874,468,00002,117,632stderr
5Jun 29, 2026 18:125,17212,199,8394,552,00002,117,632stderr
6Jun 29, 2026 18:125,17712,229,8194,556,00002,117,632stderr
7Jun 29, 2026 18:125,18212,477,8674,561,00002,117,632stderr
8Jun 29, 2026 18:125,21312,331,9654,588,00002,117,632stderr
9Jun 29, 2026 18:125,21812,572,0014,592,00002,117,632stderr