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 18, 2026 00:55Josu San MartinJosu San MartinScore: 19,692Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2026 00:5519,61542,555,01116,246,0001,015,0002,412,544
2Jan 18, 2026 00:5519,63338,592,26716,261,0001,016,0002,416,640
3Jan 18, 2026 00:5519,64743,969,31815,255,0002,034,0002,506,752
4Jan 18, 2026 00:5519,67741,771,04516,298,0001,018,0002,412,544
5Jan 18, 2026 00:5519,69240,981,58217,329,00002,420,736
6Jan 18, 2026 00:5519,71440,086,75514,287,0003,061,0002,338,816
7Jan 18, 2026 00:5519,75939,410,71915,343,0002,045,0002,527,232
8Jan 18, 2026 00:5519,78444,101,99416,386,0001,024,0002,412,544
9Jan 18, 2026 00:5519,80035,238,86017,424,00002,506,752