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 19:14olliecrowolliecrowError
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 19:15030,722,20210,019,0002,003,0002,338,816expected "51685300158199 ", got "51685300158132 "
2Apr 24, 2026 19:1513,39428,330,1399,823,0001,964,0002,342,912
3Apr 24, 2026 19:1515,35735,026,87212,476,0001,039,0002,408,448