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 12, 2026 15:12highload-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 12, 2026 15:13010,025,02001,337,0002,113,536expected "50788283749131 ", got "1286249101487671584 "
2Oct 12, 2026 15:13010,030,17901,329,0002,113,536expected "50972356659676 ", got "6846610648799613530 "
3Oct 12, 2026 15:1309,971,31901,320,0002,113,536expected "51070481092251 ", got "1667668224758508813 "