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 listMar 23, 2026 22:56Dominique GarmierDominique GarmierScore: 44,890Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 23, 2026 22:5644,85967,861,97438,464,0001,012,0002,359,296
2Mar 23, 2026 22:5644,89066,844,05539,503,00002,367,488
3Mar 23, 2026 22:5644,92760,736,58638,523,0001,013,0002,375,680