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 13, 2026 12:02Victor MerckléVictor MerckléScore: 7,231Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 13, 2026 12:057,20513,509,0436,341,00002,113,536
2Jun 13, 2026 12:057,21813,528,4136,352,00002,113,536
3Jun 13, 2026 12:057,22013,588,3866,354,00002,113,536
4Jun 13, 2026 12:057,22813,582,2846,361,00002,113,536
5Jun 13, 2026 12:057,23113,612,1116,364,00002,113,536
6Jun 13, 2026 12:057,25613,884,6716,386,00002,113,536
7Jun 13, 2026 12:057,38013,988,6376,495,00002,113,536
8Jun 13, 2026 12:057,39313,937,4066,506,00002,113,536
9Jun 13, 2026 12:057,41713,772,2396,527,00002,113,536