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 25, 2026 23:39olliecrowolliecrowScore: 13,357Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 23:3913,30530,481,34610,645,0001,064,0002,519,040
2Apr 25, 2026 23:3913,31031,108,62010,649,0001,064,0002,527,232
3Apr 25, 2026 23:3913,32533,582,83110,660,0001,066,0002,523,136
4Apr 25, 2026 23:3913,35623,990,93010,686,0001,068,0002,514,944
5Apr 25, 2026 23:3913,35728,835,40710,687,0001,068,0002,338,816
6Apr 25, 2026 23:3913,46128,950,5819,872,0001,974,0002,322,432
7Apr 25, 2026 23:3914,22927,244,49011,479,0001,043,0002,531,328
8Apr 25, 2026 23:3914,45927,498,08211,664,0001,060,0002,523,136
9Apr 25, 2026 23:3914,50429,888,54011,701,0001,063,0002,514,944