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 14, 2026 02:48vahookvahookScore: 4,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 14, 2026 02:484,60721,691,5862,027,0002,027,0002,482,176
2Jan 14, 2026 02:484,66823,041,3352,054,0002,054,0002,277,376
3Jan 14, 2026 02:484,68021,908,5002,059,0002,059,0002,486,272
4Jan 14, 2026 02:484,68216,835,2962,060,0002,060,0002,277,376
5Jan 14, 2026 02:484,68421,484,5122,061,0002,061,0002,490,368
6Jan 14, 2026 02:484,74818,893,5732,089,0002,089,0002,523,136