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 27, 2026 05:23Victor MerckléVictor MerckléScore: 5,210Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 05:255,08812,079,5874,478,00002,117,632
2Jun 27, 2026 05:255,10012,126,3394,488,00002,117,632
3Jun 27, 2026 05:255,19212,284,4114,569,00002,117,632
4Jun 27, 2026 05:255,20312,107,0774,579,00002,117,632
5Jun 27, 2026 05:255,21012,113,5764,585,00002,117,632
6Jun 27, 2026 05:255,24311,989,0444,614,00002,117,632
7Jun 27, 2026 05:255,26112,251,5814,630,00002,117,632
8Jun 27, 2026 05:255,30112,283,0534,665,00002,117,632
9Jun 27, 2026 05:255,52012,485,9244,858,00002,117,632