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 8, 2026 00:20Victor MerckléVictor MerckléScore: 7,478Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2026 00:247,34315,229,0336,462,00002,113,536
2Jun 8, 2026 00:247,34813,743,4666,467,00002,113,536
3Jun 8, 2026 00:247,45213,879,7176,558,00002,113,536
4Jun 8, 2026 00:247,46313,893,5946,568,00002,113,536
5Jun 8, 2026 00:247,47814,417,6906,581,00002,113,536
6Jun 8, 2026 00:247,54013,877,3176,636,00002,113,536
7Jun 8, 2026 00:247,64414,069,0226,727,00002,113,536
8Jun 8, 2026 00:247,70514,376,6786,781,00002,113,536
9Jun 8, 2026 00:247,87622,627,8166,931,00002,113,536