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 25, 2026 06:56olliecrowolliecrowScore: 13,251Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 06:5713,13830,147,01710,511,0001,051,0002,330,624
2Apr 25, 2026 06:5713,16828,167,18710,535,0001,053,0002,338,816
3Apr 25, 2026 06:5713,17729,009,33310,542,0001,054,0002,318,336
4Apr 25, 2026 06:5713,24028,661,22910,593,0001,059,0002,330,624
5Apr 25, 2026 06:5713,25124,465,73910,601,0001,060,0002,330,624
6Apr 25, 2026 06:5713,27030,586,56511,678,00002,330,624
7Apr 25, 2026 06:5713,57230,225,3819,954,0001,990,0002,338,816
8Apr 25, 2026 06:5714,37228,796,13611,594,0001,054,0002,326,528
9Apr 25, 2026 06:5714,75328,506,65610,986,0001,997,0002,342,912