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 listMay 22, 2026 01:19Josu San MartinJosu San MartinScore: 29,640Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2026 01:2129,39636,956,27524,764,0001,105,0002,113,536
2May 22, 2026 01:2129,53836,616,86024,905,0001,089,0002,113,536
3May 22, 2026 01:2129,60537,058,02224,962,0001,091,0002,113,536
4May 22, 2026 01:2129,62037,829,60524,980,0001,086,0002,113,536
5May 22, 2026 01:2129,64037,183,24124,982,0001,102,0002,113,536
6May 22, 2026 01:2129,64636,442,21925,001,0001,088,0002,113,536
7May 22, 2026 01:2129,70736,240,04925,054,0001,089,0002,113,536
8May 22, 2026 01:2129,73735,336,16425,083,0001,086,0002,113,536
9May 22, 2026 01:2129,74537,834,23425,158,0001,018,0002,113,536