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 06:09Josu San MartinJosu San MartinScore: 36,501Success
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 06:0936,30053,120,85729,948,0001,996,0002,293,760
2Jan 17, 2026 06:0936,40654,335,16530,035,0002,002,0002,281,472
3Jan 17, 2026 06:0936,41866,054,77831,047,0001,001,0002,297,856
4Jan 17, 2026 06:0936,48156,599,56930,097,0002,006,0002,469,888
5Jan 17, 2026 06:0936,50158,959,41131,118,0001,003,0002,449,408
6Jan 17, 2026 06:0936,51755,675,26430,127,0002,008,0002,289,664
7Jan 17, 2026 06:0936,51956,487,76530,129,0002,008,0002,453,504
8Jan 17, 2026 06:0936,55060,529,46830,154,0002,010,0002,457,600
9Jan 17, 2026 06:0936,55756,665,51030,160,0002,010,0002,453,504