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 23, 2026 17:16anboto1anboto1Score: 26,704Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 17:1826,66432,383,81022,202,0001,263,0002,113,536
2Jun 23, 2026 17:1826,67332,537,10622,215,0001,258,0002,113,536
3Jun 23, 2026 17:1826,67832,335,24122,244,0001,233,0002,113,536
4Jun 23, 2026 17:1826,68233,607,97822,241,0001,240,0002,113,536
5Jun 23, 2026 17:1826,70432,425,23322,330,0001,170,0002,113,536
6Jun 23, 2026 17:1826,71332,372,24322,260,0001,248,0002,113,536
7Jun 23, 2026 17:1826,72132,438,48622,253,0001,262,0002,113,536
8Jun 23, 2026 17:1826,74332,425,84722,275,0001,259,0002,113,536
9Jun 23, 2026 17:1826,75932,424,26522,291,0001,257,0002,113,536