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 8, 2026 02:56Karthik ReddyKarthik ReddyScore: 2,471Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 8, 2026 02:582,45910,940,8702,164,000020,480
2Oct 8, 2026 02:582,46010,975,6592,165,000020,480
3Oct 8, 2026 02:582,46510,999,1272,170,000020,480
4Oct 8, 2026 02:582,47010,986,0182,174,000020,480
5Oct 8, 2026 02:582,47110,911,5162,175,000020,480
6Oct 8, 2026 02:582,47211,020,5552,176,000020,480
7Oct 8, 2026 02:582,48810,888,8702,190,000020,480
8Oct 8, 2026 02:582,53411,403,7622,230,000020,480
9Oct 8, 2026 02:582,68911,203,4062,367,000020,480