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 13, 2026 03:21highload-churnerhighload-churnerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 13, 2026 03:22011,040,4792,231,00002,113,536expected "51565514575648 ", got "18548930084 "
2Oct 13, 2026 03:22011,003,7662,258,00002,113,536expected "51279335000433 ", got "5647859825 "
3Oct 13, 2026 03:22010,995,8052,239,00002,113,536expected "51056604026836 ", got "19032028688 "