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 9, 2026 19:51Victor MerckléVictor MerckléScore: 7,510Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 9, 2026 19:547,40013,729,1076,512,00002,113,536
2Jun 9, 2026 19:547,44015,518,1006,548,00002,113,536
3Jun 9, 2026 19:547,50214,232,5496,602,00002,113,536
4Jun 9, 2026 19:547,50913,897,7516,608,00002,113,536
5Jun 9, 2026 19:547,51014,006,4696,609,00002,113,536
6Jun 9, 2026 19:547,52113,767,7836,619,00002,113,536
7Jun 9, 2026 19:547,53913,775,6676,635,00002,113,536
8Jun 9, 2026 19:547,63813,897,5996,722,00002,113,536
9Jun 9, 2026 19:547,67813,954,9986,757,00002,113,536