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 6, 2026 09:36Victor MerckléVictor MerckléScore: 7,536Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 6, 2026 09:387,50314,030,6056,603,00002,113,536
2Jun 6, 2026 09:387,51814,014,3806,616,00002,113,536
3Jun 6, 2026 09:387,53114,028,7926,628,00002,113,536
4Jun 6, 2026 09:387,53414,073,3546,630,00002,113,536
5Jun 6, 2026 09:387,53614,348,4746,632,00002,113,536
6Jun 6, 2026 09:387,54214,061,3326,637,00002,113,536
7Jun 6, 2026 09:387,56414,105,1766,657,00002,113,536
8Jun 6, 2026 09:387,57614,092,6646,667,00002,113,536
9Jun 6, 2026 09:387,68014,130,7416,759,00002,113,536