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 20, 2026 23:37olliecrowolliecrowScore: 12,784Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 23:3812,63833,995,6879,100,0002,022,0002,297,856
2Apr 20, 2026 23:3812,64727,001,6398,095,0003,035,0002,297,856
3Apr 20, 2026 23:3812,65628,052,3829,113,0002,025,0002,293,760
4Apr 20, 2026 23:3812,71225,901,6279,153,0002,034,0002,301,952
5Apr 20, 2026 23:3812,78433,185,1858,182,0003,068,0002,306,048
6Apr 20, 2026 23:3812,86929,000,5089,266,0002,059,0002,293,760
7Apr 20, 2026 23:3812,86928,586,3479,266,0002,059,0002,301,952
8Apr 20, 2026 23:3813,16430,308,51110,532,0001,053,0002,486,272
9Apr 20, 2026 23:3814,09226,214,33511,368,0001,033,0002,289,664