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:54Shikhar SoniShikhar SoniScore: 24,670Success
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:5624,60530,824,80821,653,00002,113,536
2Jun 28, 2026 08:5624,61030,739,86121,657,00002,113,536
3Jun 28, 2026 08:5624,63530,725,84221,679,00002,113,536
4Jun 28, 2026 08:5624,65431,143,72421,696,00002,113,536
5Jun 28, 2026 08:5624,67030,837,86121,710,00002,113,536
6Jun 28, 2026 08:5624,68231,142,94821,721,00002,113,536
7Jun 28, 2026 08:5624,68930,837,57621,727,00002,113,536
8Jun 28, 2026 08:5624,71530,856,07721,750,00002,113,536
9Jun 28, 2026 08:5624,73830,917,54921,770,00002,113,536