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 04:02Karthik ReddyKarthik ReddyScore: 2,462Success
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 04:062,44410,556,8252,151,000020,480
2Oct 9, 2026 04:062,44712,313,4142,154,000020,480
3Oct 9, 2026 04:062,45510,403,2722,161,000020,480
4Oct 9, 2026 04:062,45710,605,0372,163,000020,480
5Oct 9, 2026 04:062,46210,659,8052,167,000020,480
6Oct 9, 2026 04:062,46710,636,1082,171,000020,480
7Oct 9, 2026 04:062,47910,681,4332,182,000020,480
8Oct 9, 2026 04:062,53710,748,8452,233,000020,480
9Oct 9, 2026 04:062,57010,748,0402,262,000020,480