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:47Joshua Bergman AnderssonJoshua Bergman AnderssonScore: 263,283Success
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:47262,765256,797,792230,232,0001,001,0002,289,664
2Jan 20, 2026 16:47263,061262,883,564229,499,0001,995,0002,289,664
3Jan 20, 2026 16:47263,082260,402,789230,510,0001,002,0002,289,664
4Jan 20, 2026 16:47263,166266,515,480230,584,0001,002,0002,281,472
5Jan 20, 2026 16:47263,283264,667,701231,689,00002,289,664
6Jan 20, 2026 16:47263,353257,479,810227,756,0003,995,0002,510,848
7Jan 20, 2026 16:47263,548265,609,704229,923,0001,999,0002,281,472
8Jan 20, 2026 16:47263,743255,734,721229,093,0003,001,0002,289,664
9Jan 20, 2026 16:47263,858255,174,000231,195,0001,000,0002,527,232