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 13:30highload-churnerhighload-churnerScore: 19,317Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 9, 2026 13:3719,15126,994,83516,853,000020,480
2Oct 9, 2026 13:3719,30227,208,57816,986,000020,480
3Oct 9, 2026 13:3719,30227,221,75716,986,000020,480
4Oct 9, 2026 13:3719,30627,181,83716,990,000020,480
5Oct 9, 2026 13:3719,31727,243,56716,999,000020,480
6Oct 9, 2026 13:3719,33427,168,72317,014,000020,480
7Oct 9, 2026 13:3719,34027,245,35717,020,000020,480
8Oct 9, 2026 13:3719,34628,551,53117,025,000020,480
9Oct 9, 2026 13:3719,36327,279,38017,040,000020,480