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:06limanjun99limanjun99Score: 117,647Success
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:06117,464125,979,167102,365,0001,003,0002,265,088
2Mar 18, 2026 08:06117,501126,726,169103,401,00002,277,376
3Mar 18, 2026 08:06117,591126,153,176102,476,0001,004,0002,277,376
4Mar 18, 2026 08:06117,610131,170,861102,493,0001,004,0002,289,664
5Mar 18, 2026 08:06117,647124,719,353102,524,0001,005,0002,289,664
6Mar 18, 2026 08:06117,786137,175,606102,646,0001,006,0002,289,664
7Mar 18, 2026 08:06117,850135,188,019102,702,0001,006,0002,289,664
8Mar 18, 2026 08:06118,024130,793,025101,864,0001,997,0002,289,664
9Mar 18, 2026 08:06118,092127,303,071101,923,0001,998,0002,289,664