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 16:12Victor MerckléVictor MerckléScore: 4,780Success
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 16:154,68211,781,2864,121,00002,117,632stderr
2Jun 29, 2026 16:154,76811,979,6894,196,00002,117,632stderr
3Jun 29, 2026 16:154,77011,851,9784,198,00002,117,632stderr
4Jun 29, 2026 16:154,77211,871,3334,200,00002,117,632stderr
5Jun 29, 2026 16:154,78012,010,8794,207,00002,117,632stderr
6Jun 29, 2026 16:154,78512,265,8634,211,00002,117,632stderr
7Jun 29, 2026 16:154,78812,087,0044,214,00002,117,632stderr
8Jun 29, 2026 16:154,78811,898,4684,214,00002,117,632stderr
9Jun 29, 2026 16:155,16712,245,1634,547,00002,117,632stderr