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 listApr 20, 2026 15:17BenBenScore: 142,646Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 15:22142,175151,469,504122,112,0003,002,0002,293,760
2Apr 20, 2026 15:22142,330147,707,358122,245,0003,006,0002,326,528
3Apr 20, 2026 15:22142,419146,684,384123,324,0002,005,0002,289,664
4Apr 20, 2026 15:22142,461149,689,074122,358,0003,008,0002,289,664
5Apr 20, 2026 15:22142,646149,174,878122,517,0003,012,0002,273,280
6Apr 20, 2026 15:22142,656147,646,646123,530,0002,008,0002,281,472
7Apr 20, 2026 15:22142,700148,590,246123,567,0002,009,0002,289,664
8Apr 20, 2026 15:22142,973153,640,460122,822,0002,995,0002,293,760
9Apr 20, 2026 15:22143,214139,539,002122,029,0004,000,0002,510,848