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 16, 2026 01:12zielajzielajScore: 3,455Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 16, 2026 01:103,38918,533,0201,988,000994,0002,535,424
2Jan 16, 2026 01:123,41922,370,8092,006,0001,003,0002,359,296
3Jan 16, 2026 01:103,44320,123,5521,010,0002,020,0002,359,296
4Jan 16, 2026 01:123,45523,547,7222,027,0001,013,0002,277,376
5Jan 16, 2026 01:123,46417,839,6932,032,0001,016,0002,277,376
6Jan 16, 2026 01:103,54522,902,9401,040,0002,080,0002,367,488