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 listApr 28, 2026 22:59olliecrowolliecrowScore: 13,182Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 22:5913,15333,872,07910,523,0001,052,0002,334,720stderr
2Apr 28, 2026 22:5913,15933,134,6649,475,0002,105,0002,318,336stderr
3Apr 28, 2026 22:5913,16527,115,49610,533,0001,053,0002,338,816stderr
4Apr 28, 2026 22:5913,17228,280,80210,539,0001,053,0002,318,336stderr
5Apr 28, 2026 22:5913,18227,112,54110,547,0001,054,0002,334,720stderr
6Apr 28, 2026 22:5913,20028,318,0389,504,0002,112,0002,326,528stderr
7Apr 28, 2026 22:5913,27128,426,1669,556,0002,123,0002,334,720stderr
8Apr 28, 2026 22:5913,28935,104,62610,632,0001,063,0002,338,816stderr
9Apr 28, 2026 22:5913,36926,115,8209,626,0002,139,0002,322,432stderr