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:06Karthik ReddyKarthik ReddyScore: 2,482Success
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:082,46810,977,5542,172,000020,480
2Oct 9, 2026 04:082,47010,929,7302,174,000020,480
3Oct 9, 2026 04:082,47510,970,4642,178,000020,480
4Oct 9, 2026 04:082,48110,931,3992,184,000020,480
5Oct 9, 2026 04:082,48210,940,0762,185,000020,480
6Oct 9, 2026 04:082,48411,149,7952,186,000020,480
7Oct 9, 2026 04:082,48810,916,1522,190,000020,480
8Oct 9, 2026 04:082,50110,751,0892,201,000020,480
9Oct 9, 2026 04:082,50210,794,5532,202,000020,480