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 20:41Pavel SkripkinPavel SkripkinError
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 20:410111,003,29594,347,0001,003,0002,428,928expected "51259189900118 ", got "51259189875762 "
2Apr 24, 2026 20:410113,650,02294,473,0001,005,0002,428,928expected "51555344345221 ", got "51555344307720 "
3Apr 24, 2026 20:410111,609,78094,453,0001,004,0002,424,832expected "51469462971326 ", got "51469462761045 "