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 7, 2026 17:09Andrey LikhachevAndrey LikhachevScore: 31,413Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 17:1131,17336,925,60426,415,0001,018,0002,117,632
2Jul 7, 2026 17:1131,32036,981,97027,562,00002,117,632
3Jul 7, 2026 17:1131,32538,963,75626,564,0001,002,0002,117,632
4Jul 7, 2026 17:1131,35637,004,73927,594,00002,117,632
5Jul 7, 2026 17:1131,41337,000,85426,608,0001,036,0002,117,632
6Jul 7, 2026 17:1131,42137,031,03526,595,0001,056,0002,117,632
7Jul 7, 2026 17:1131,46537,145,17826,643,0001,047,0002,121,728
8Jul 7, 2026 17:1131,47737,141,14326,659,0001,041,0002,117,632
9Jul 7, 2026 17:1131,55437,144,26926,712,0001,056,0002,121,728