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 listSep 12, 2026 08:38Haha ExpertHaha ExpertScore: 124,771Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 12, 2026 08:41124,300118,012,414109,384,00002,117,632
2Sep 12, 2026 08:41124,356119,517,091109,434,00002,117,632
3Sep 12, 2026 08:41124,414118,061,713109,485,00002,117,632
4Sep 12, 2026 08:41124,472118,015,720109,536,00002,117,632
5Sep 12, 2026 08:41124,771118,473,439109,799,00002,117,632
6Sep 12, 2026 08:41124,777118,265,035109,804,00002,117,632
7Sep 12, 2026 08:41124,803118,320,066109,827,00002,117,632
8Sep 12, 2026 08:41124,813118,301,077109,836,00002,117,632
9Sep 12, 2026 08:41124,837118,414,670108,846,0001,011,0002,117,632