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 listApr 26, 2026 01:44olliecrowolliecrowScore: 12,925Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 01:4512,26926,319,9639,718,0001,079,0002,351,104
2Apr 26, 2026 01:4512,47825,067,8398,985,0001,996,0002,396,160
3Apr 26, 2026 01:4512,82033,006,09010,257,0001,025,0002,326,528
4Apr 26, 2026 01:4512,84628,697,27010,278,0001,027,0002,326,528
5Apr 26, 2026 01:4512,92530,070,74910,340,0001,034,0002,330,624
6Apr 26, 2026 01:4513,13830,667,40410,511,0001,051,0002,330,624
7Apr 26, 2026 01:4513,21930,060,48810,576,0001,057,0002,330,624
8Apr 26, 2026 01:4513,61832,813,3729,987,0001,997,0002,330,624
9Apr 26, 2026 01:4513,82728,066,76810,140,0002,028,0002,330,624