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 listJun 21, 2026 22:28A_ShamanA_ShamanError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 22:310119,477,638107,925,0002,271,0002,117,632expected "50968196621623 ", got "50964946367405 "
2Jun 21, 2026 22:310119,228,999107,733,0002,283,0002,117,632expected "51051085173445 ", got "51038809620946 "
3Jun 21, 2026 22:310119,817,433108,347,0002,274,0002,117,632expected "51457523363922 ", got "51445122656180 "