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 28, 2026 08:43Shikhar SoniShikhar SoniScore: 25,975Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2026 08:4525,91731,958,20322,807,00002,113,536
2Jun 28, 2026 08:4525,95131,901,35122,837,00002,113,536
3Jun 28, 2026 08:4525,96831,916,20622,852,00002,113,536
4Jun 28, 2026 08:4525,97331,997,87022,857,00002,113,536
5Jun 28, 2026 08:4525,97531,966,02322,858,00002,113,536
6Jun 28, 2026 08:4525,98533,173,79622,867,00002,113,536
7Jun 28, 2026 08:4526,00432,078,99322,884,00002,113,536
8Jun 28, 2026 08:4526,02232,022,87322,900,00002,113,536
9Jun 28, 2026 08:4526,08532,194,56522,955,00002,113,536