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 19, 2026 23:57Johan SannemoJohan SannemoScore: 27,445Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 19, 2026 23:5727,29748,559,80722,020,0002,001,0002,277,376
2Jan 19, 2026 23:5727,34349,897,83022,057,0002,005,0002,277,376
3Jan 19, 2026 23:5727,35648,237,70522,067,0002,006,0002,281,472
4Jan 19, 2026 23:5727,39146,952,68123,100,0001,004,0002,281,472
5Jan 19, 2026 23:5727,44549,453,39523,146,0001,006,0002,277,376
6Jan 19, 2026 23:5727,46150,424,70523,160,0001,006,0002,519,040
7Jan 19, 2026 23:5727,55046,761,03022,224,0002,020,0002,281,472
8Jan 19, 2026 23:5727,57056,994,38722,241,0002,021,0002,519,040
9Jan 19, 2026 23:5727,57454,497,59123,254,0001,011,0002,527,232