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 listMar 18, 2026 08:25limanjun99limanjun99Score: 113,275Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 18, 2026 08:25113,107131,017,59798,529,0001,005,0002,289,664
2Mar 18, 2026 08:25113,138125,134,21698,556,0001,005,0002,269,184
3Mar 18, 2026 08:25113,159124,107,52999,580,00002,289,664
4Mar 18, 2026 08:25113,265127,047,54998,667,0001,006,0002,277,376
5Mar 18, 2026 08:25113,275124,710,62798,676,0001,006,0002,289,664
6Mar 18, 2026 08:25113,460129,593,66698,847,000998,0002,265,088
7Mar 18, 2026 08:25113,466128,760,55897,853,0001,997,0002,285,568
8Mar 18, 2026 08:25113,480128,136,11098,864,000998,0002,273,280
9Mar 18, 2026 08:25113,507124,744,76197,889,0001,997,0002,269,184