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 listAug 15, 2026 18:30Tomislav TunkovicTomislav TunkovicScore: 2,822Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 15, 2026 18:342,80610,667,9002,470,000020,480
2Aug 15, 2026 18:342,81510,665,2442,478,000020,480
3Aug 15, 2026 18:342,82110,674,4752,483,000020,480
4Aug 15, 2026 18:342,82110,654,1782,483,000020,480
5Aug 15, 2026 18:342,82210,709,1372,484,000020,480
6Aug 15, 2026 18:342,82510,672,1532,486,000020,480
7Aug 15, 2026 18:342,83210,590,6932,493,000020,480
8Aug 15, 2026 18:342,84011,238,4262,500,000020,480
9Aug 15, 2026 18:342,85710,629,9112,515,000020,480