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 00:06vahookvahookScore: 4,777Success
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 00:054,70721,907,2292,071,0002,071,0002,498,560
2Jan 14, 2026 00:064,72317,854,1062,078,0002,078,0002,498,560
3Jan 14, 2026 00:064,73222,531,7632,082,0002,082,0002,277,376
4Jan 14, 2026 00:064,73216,975,6892,082,0002,082,0002,502,656
5Jan 14, 2026 00:064,73425,703,0752,083,0002,083,0002,277,376
6Jan 14, 2026 00:054,76122,493,6072,095,0002,095,0002,490,368
7Jan 14, 2026 00:064,77722,811,6612,102,0002,102,0002,494,464
8Jan 14, 2026 00:054,80019,247,3493,168,0001,056,0002,494,464
9Jan 14, 2026 00:064,80919,988,8983,174,0001,058,0002,490,368
10Jan 14, 2026 00:064,80920,579,0743,174,0001,058,0002,490,368
11Jan 14, 2026 00:064,82422,011,4543,184,0001,061,0002,498,560
12Jan 14, 2026 00:064,82816,521,6853,187,0001,062,0002,281,472