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 2, 2026 21:23A_ShamanA_ShamanScore: 122,229Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 21:25121,769116,601,677106,030,0001,127,0002,113,536
2Jul 2, 2026 21:25121,792116,834,566105,943,0001,234,0002,113,536
3Jul 2, 2026 21:25121,822117,093,017105,933,0001,271,0002,113,536
4Jul 2, 2026 21:25122,035117,200,735106,119,0001,272,0002,113,536
5Jul 2, 2026 21:25122,229120,994,524106,438,0001,124,0002,113,536
6Jul 2, 2026 21:25122,245117,337,735106,329,0001,247,0002,113,536
7Jul 2, 2026 21:25122,486117,274,126106,650,0001,138,0002,113,536
8Jul 2, 2026 21:25122,501117,351,337106,578,0001,223,0002,113,536
9Jul 2, 2026 21:25122,610117,366,063106,759,0001,138,0002,113,536