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:29Victor MerckléVictor MerckléScore: 7,029Success
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:326,90113,560,8006,073,00002,117,632stderr
2Jun 26, 2026 23:326,90213,567,8996,074,00002,117,632stderr
3Jun 26, 2026 23:326,90613,647,3046,078,00002,117,632stderr
4Jun 26, 2026 23:326,91913,566,5646,089,00002,117,632stderr
5Jun 26, 2026 23:327,02913,665,5486,186,00002,117,632stderr
6Jun 26, 2026 23:327,04013,976,4076,196,00002,117,632stderr
7Jun 26, 2026 23:327,04713,700,7466,202,00002,117,632stderr
8Jun 26, 2026 23:327,05314,015,7366,207,00002,117,632stderr
9Jun 26, 2026 23:327,22314,187,6976,357,00002,117,632stderr