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 listJul 31, 2026 21:53Warren FuWarren FuScore: 7,362,203Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2026 21:567,313,8206,446,298,4906,435,161,0001,001,0002,113,536
2Jul 31, 2026 21:567,339,8276,469,354,7296,458,048,0001,000,0002,113,536
3Jul 31, 2026 21:567,345,0806,473,978,9436,462,659,0001,012,0002,113,536
4Jul 31, 2026 21:567,355,3716,482,862,5246,471,723,0001,004,0002,113,536
5Jul 31, 2026 21:567,362,2036,489,095,4226,476,735,0002,004,0002,113,536
6Jul 31, 2026 21:567,362,7206,490,207,2636,478,189,0001,005,0002,113,536
7Jul 31, 2026 21:567,367,2316,493,946,8236,482,159,0001,005,0002,113,536
8Jul 31, 2026 21:567,397,6776,521,087,1236,507,917,0002,039,0002,113,536
9Jul 31, 2026 21:567,417,7036,537,669,1376,526,575,0001,004,0002,113,536