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: 18,490Success
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:3418,45326,450,38516,239,000020,480
2Oct 9, 2026 13:3418,45426,484,46816,240,000020,480
3Oct 9, 2026 13:3418,47526,435,78016,258,000020,480
4Oct 9, 2026 13:3418,48626,538,20116,268,000020,480
5Oct 9, 2026 13:3418,49026,447,25916,272,000020,480
6Oct 9, 2026 13:3418,49326,561,34016,274,000020,480
7Oct 9, 2026 13:3418,51426,420,79016,293,000020,480
8Oct 9, 2026 13:3418,52326,528,77716,301,000020,480
9Oct 9, 2026 13:3418,52726,489,99516,304,000020,480