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 listOct 9, 2026 06:00Karthik ReddyKarthik ReddyScore: 2,601Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 9, 2026 06:052,56810,936,0962,260,000024,576
2Oct 9, 2026 06:052,57710,811,4272,268,000024,576
3Oct 9, 2026 06:052,58110,900,9992,272,000024,576
4Oct 9, 2026 06:052,58710,985,1412,277,000024,576
5Oct 9, 2026 06:052,60110,977,1972,289,000024,576
6Oct 9, 2026 06:052,60510,948,5322,293,000024,576
7Oct 9, 2026 06:052,61510,867,9892,302,000024,576
8Oct 9, 2026 06:052,62510,745,8842,310,000024,576
9Oct 9, 2026 06:052,66010,920,1852,341,000024,576