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 listApr 24, 2026 04:11olliecrowolliecrowError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 04:12031,506,0386,301,0006,301,0002,510,848expected "51361003281582 ", got "0 "stderr
2Apr 24, 2026 04:12025,886,7146,167,0006,167,0002,502,656expected "51211487448643 ", got "0 "stderr
3Apr 24, 2026 04:12027,332,2816,233,0006,233,0002,465,792expected "51066677909167 ", got "0 "stderr