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 listJan 20, 2026 16:24Joshua Bergman AnderssonJoshua Bergman AnderssonScore: 26,997,225Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2026 16:2426,997,18523,798,486,07723,754,525,0002,998,0002,285,568
2Jan 20, 2026 16:2426,997,22523,793,768,28323,756,559,000999,0002,465,792
3Jan 20, 2026 16:2426,998,77223,793,051,37823,754,921,0003,998,0002,285,568