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:18Haha ExpertHaha ExpertError
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:190151,047,159141,082,0001,154,0002,117,632expected "51238850929254 ", got "25976061976547 "
2Sep 12, 2026 08:190150,793,543142,206,00002,117,632expected "51034755347491 ", got "25832082572429 "
3Sep 12, 2026 08:190151,164,478141,351,00002,117,632expected "50600158490704 ", got "25466296328268 "