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 listFeb 4, 2026 19:27vahookvahookScore: 3,569Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 19:273,47822,654,7401,020,0002,041,0002,498,560
2Feb 4, 2026 19:273,48217,016,5701,021,0002,043,0002,490,368
3Feb 4, 2026 19:273,49215,737,8161,024,0002,049,0002,281,472
4Feb 4, 2026 19:273,55321,600,9581,042,0002,085,0002,498,560
5Feb 4, 2026 19:273,56921,637,5711,047,0002,094,0002,490,368
6Feb 4, 2026 19:273,57321,125,0581,048,0002,096,0002,490,368
7Feb 4, 2026 19:273,57421,329,9691,048,0002,097,0002,277,376
8Feb 4, 2026 19:273,58322,344,6861,051,0002,102,0002,277,376
9Feb 4, 2026 19:273,58821,534,5021,052,0002,105,0002,498,560