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 10:37olliecrowolliecrowScore: 13,329Success
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 10:3813,14229,890,37710,514,0001,051,0002,441,216stderr
2Apr 26, 2026 10:3813,15633,913,83210,526,0001,052,0002,322,432stderr
3Apr 26, 2026 10:3813,19028,632,24810,553,0001,055,0002,338,816stderr
4Apr 26, 2026 10:3813,20524,915,48511,621,00002,330,624stderr
5Apr 26, 2026 10:3813,32933,704,27610,664,0001,066,0002,326,528stderr
6Apr 26, 2026 10:3813,39425,116,90610,716,0001,071,0002,322,432stderr
7Apr 26, 2026 10:3813,76733,027,45110,096,0002,019,0002,334,720stderr
8Apr 26, 2026 10:3814,12729,821,32911,396,0001,036,0002,326,528stderr
9Apr 26, 2026 10:3814,70627,531,91911,947,000995,0002,338,816stderr