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 21:55Johan SannemoJohan SannemoScore: 32,682Success
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 21:5532,50552,930,85427,583,0001,021,0002,281,472
2Jan 19, 2026 21:5532,56156,073,25527,631,0001,023,0002,527,232
3Jan 19, 2026 21:5532,63957,625,72827,697,0001,025,0002,281,472
4Jan 19, 2026 21:5532,66454,791,72327,718,0001,026,0002,527,232
5Jan 19, 2026 21:5532,68257,335,12927,733,0001,027,0002,281,472
6Jan 19, 2026 21:5532,69357,320,46727,743,0001,027,0002,523,136
7Jan 19, 2026 21:5532,83158,064,51427,895,000996,0002,281,472
8Jan 19, 2026 21:5532,84261,456,37226,908,0001,993,0002,281,472
9Jan 19, 2026 21:5532,84754,784,27626,912,0001,993,0002,281,472