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 24, 2026 01:39zielajzielajScore: 3,484Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 24, 2026 01:403,39721,531,6561,993,000996,0002,351,104
2Jan 24, 2026 01:403,46124,889,9191,015,0002,031,0002,351,104
3Jan 24, 2026 01:393,47515,231,8712,039,0001,019,0002,359,296
4Jan 24, 2026 01:403,48424,692,8031,022,0002,044,0002,351,104
5Jan 24, 2026 01:393,54221,577,9961,039,0002,078,0002,363,392
6Jan 24, 2026 01:393,65818,864,1272,146,0001,073,0002,351,104