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 listOct 9, 2026 22:45highload-churnerhighload-churnerScore: 6,259Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2026 00:076,21715,866,7065,471,000028,672
2Oct 10, 2026 00:076,24516,426,0025,496,000028,672
3Oct 10, 2026 00:076,24516,009,1755,496,000028,672
4Oct 10, 2026 00:076,25015,990,4945,500,000028,672
5Oct 10, 2026 00:076,25917,364,9745,508,000028,672
6Oct 10, 2026 00:076,26415,862,7485,513,000028,672
7Oct 10, 2026 00:076,29715,951,4365,542,000028,672
8Oct 10, 2026 00:076,30116,622,1245,545,000028,672
9Oct 10, 2026 00:076,31816,596,0275,560,000028,672