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 22, 2026 15:06olliecrowolliecrowScore: 13,209Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2026 15:0713,11529,982,43410,493,0001,049,0002,338,816
2Apr 22, 2026 15:0713,11929,385,12710,496,0001,049,0002,334,720
3Apr 22, 2026 15:0713,12825,153,23410,503,0001,050,0002,330,624
4Apr 22, 2026 15:0713,14330,863,11410,515,0001,051,0002,338,816
5Apr 22, 2026 15:0713,20929,557,94510,568,0001,056,0002,338,816
6Apr 22, 2026 15:0713,26828,446,51211,676,00002,334,720
7Apr 22, 2026 15:0714,07528,260,73611,354,0001,032,0002,326,528
8Apr 22, 2026 15:0714,12328,255,40911,394,0001,035,0002,338,816
9Apr 22, 2026 15:0714,46230,933,79111,667,0001,060,0002,338,816