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 13, 2026 07:25Karthik ReddyKarthik ReddyScore: 2,485Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 13, 2026 07:282,46410,930,1022,169,000020,480
2Oct 13, 2026 07:282,46810,916,2882,172,000020,480
3Oct 13, 2026 07:282,47710,895,8772,180,000020,480
4Oct 13, 2026 07:282,47910,942,5362,182,000020,480
5Oct 13, 2026 07:282,48510,873,1182,187,000020,480
6Oct 13, 2026 07:282,49511,018,7272,196,000020,480
7Oct 13, 2026 07:282,50410,937,6042,204,000020,480
8Oct 13, 2026 07:282,54610,955,4142,241,000020,480
9Oct 13, 2026 07:282,57512,898,6392,266,000020,480