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 07:23Victor MerckléVictor MerckléScore: 9,081Success
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 07:258,96915,362,4507,893,00002,113,536
2Jun 6, 2026 07:258,98115,366,5447,904,00002,113,536
3Jun 6, 2026 07:258,98915,382,7037,911,00002,113,536
4Jun 6, 2026 07:259,08015,421,1257,991,00002,113,536
5Jun 6, 2026 07:259,08115,380,7367,992,00002,113,536
6Jun 6, 2026 07:259,10115,433,3778,009,00002,113,536
7Jun 6, 2026 07:259,10615,415,7958,014,00002,113,536
8Jun 6, 2026 07:259,11015,701,8138,017,00002,113,536
9Jun 6, 2026 07:259,13015,432,2838,035,00002,113,536