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 listJan 17, 2026 16:40Josu San MartinJosu San MartinScore: 20,432Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 17:0820,14746,845,41317,729,00002,457,600
2Jan 17, 2026 16:4020,35045,268,85516,914,000994,0002,514,944
3Jan 17, 2026 17:0820,37345,294,58316,932,000996,0002,457,600
4Jan 17, 2026 16:4020,43233,802,85015,983,0001,997,0002,514,944
5Jan 17, 2026 17:0820,51837,560,89716,050,0002,006,0002,285,568
6Jan 17, 2026 16:4020,54141,308,45916,068,0002,008,0002,285,568