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 15:11Josu San MartinJosu San MartinScore: 20,391Success
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 15:1120,36445,060,55016,925,000995,0002,445,312
2Jan 17, 2026 15:1120,36439,787,01916,925,000995,0002,523,136
3Jan 17, 2026 15:1120,37543,953,26416,934,000996,0002,449,408
4Jan 17, 2026 15:1120,39137,634,55817,944,00002,285,568
5Jan 17, 2026 15:1120,40639,084,84316,960,000997,0002,363,392
6Jan 17, 2026 15:1120,46145,098,85616,006,0002,000,0002,457,600