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 6, 2026 03:48zielajzielajScore: 3,403Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 03:483,34117,837,5811,960,000980,0002,535,424
2Feb 6, 2026 03:483,35121,993,9891,966,000983,0002,375,680
3Feb 6, 2026 03:483,36617,252,4471,975,000987,0002,519,040
4Feb 6, 2026 03:483,38524,902,1201,986,000993,0002,375,680
5Feb 6, 2026 03:483,40316,562,9381,997,000998,0002,383,872
6Feb 6, 2026 03:483,48120,368,4932,042,0001,021,0002,371,584
7Feb 6, 2026 03:483,51124,234,6111,030,0002,060,0002,371,584
8Feb 6, 2026 03:483,52220,107,6421,033,0002,066,0002,383,872
9Feb 6, 2026 03:484,16318,456,8393,663,00002,519,040