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 listJul 2, 2026 21:36A_ShamanA_ShamanScore: 68,995Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 21:3868,85270,025,56859,354,0001,236,0002,113,536
2Jul 2, 2026 21:3868,88770,559,89059,439,0001,182,0002,113,536
3Jul 2, 2026 21:3868,92870,154,44259,521,0001,136,0002,113,536
4Jul 2, 2026 21:3868,93570,166,43659,504,0001,159,0002,113,536
5Jul 2, 2026 21:3868,99570,596,27559,458,0001,258,0002,113,536
6Jul 2, 2026 21:3869,03670,246,75859,621,0001,131,0002,113,536
7Jul 2, 2026 21:3869,19770,749,33259,610,0001,284,0002,113,536
8Jul 2, 2026 21:3869,22272,122,85859,683,0001,233,0002,113,536
9Jul 2, 2026 21:3869,27370,868,39259,680,0001,281,0002,113,536