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 7, 2026 23:11Karthik ReddyKarthik ReddyScore: 2,852Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 7, 2026 23:132,83711,718,9882,497,000020,480
2Oct 7, 2026 23:132,83911,171,0932,499,000020,480
3Oct 7, 2026 23:132,84511,340,8062,504,000020,480
4Oct 7, 2026 23:132,84711,232,5372,506,000020,480
5Oct 7, 2026 23:132,85211,256,3262,510,000020,480
6Oct 7, 2026 23:132,85311,710,0942,511,000020,480
7Oct 7, 2026 23:132,86011,340,0482,517,000020,480
8Oct 7, 2026 23:132,86111,243,1922,518,000020,480
9Oct 7, 2026 23:132,90111,757,3552,553,000020,480