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:32Victor MerckléVictor MerckléScore: 5,073Success
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:354,93912,076,3694,347,00002,113,536
2Jun 29, 2026 16:354,94512,095,3984,352,00002,113,536
3Jun 29, 2026 16:354,95212,055,9124,358,00002,113,536
4Jun 29, 2026 16:354,96312,039,9104,368,00002,113,536
5Jun 29, 2026 16:355,07312,412,3434,465,00002,113,536
6Jun 29, 2026 16:355,07612,411,4814,467,00002,113,536
7Jun 29, 2026 16:355,07912,067,8634,470,00002,113,536
8Jun 29, 2026 16:355,08212,165,6844,473,00002,113,536
9Jun 29, 2026 16:355,08212,126,3834,473,00002,113,536