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 listApr 18, 2026 14:07Charles CabergsCharles CabergsScore: 28,438Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 14:0728,33350,088,13322,939,0001,994,0002,441,216
2Apr 18, 2026 14:0728,40353,127,08123,996,000999,0002,449,408
3Apr 18, 2026 14:0728,41548,804,75923,005,0002,000,0002,293,760
4Apr 18, 2026 14:0728,43247,694,56824,020,0001,000,0002,441,216
5Apr 18, 2026 14:0728,43846,228,44722,022,0003,003,0002,449,408
6Apr 18, 2026 14:0728,45550,682,61523,037,0002,003,0002,445,312
7Apr 18, 2026 14:0728,51946,829,50122,086,0003,011,0002,445,312
8Apr 18, 2026 14:0728,56456,649,15522,120,0003,016,0002,437,120
9Apr 18, 2026 14:0728,66052,288,27623,204,0002,017,0002,289,664