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:42Karthik ReddyKarthik ReddyScore: 2,519Success
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:472,50011,131,7792,200,000024,576
2Oct 9, 2026 06:472,50910,837,7072,208,000024,576
3Oct 9, 2026 06:472,51010,783,5012,209,000024,576
4Oct 9, 2026 06:472,51510,819,3192,214,000024,576
5Oct 9, 2026 06:472,51910,881,7352,217,000024,576
6Oct 9, 2026 06:472,52012,663,0482,218,000024,576
7Oct 9, 2026 06:472,52011,230,8342,218,000024,576
8Oct 9, 2026 06:472,52810,698,5472,225,000024,576
9Oct 9, 2026 06:472,53010,726,0382,227,000024,576