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 6, 2025 21:50zielajzielajScore: 3,416Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 6, 2025 21:503,37623,022,3721,981,000990,0002,355,200
2Aug 6, 2025 21:503,38918,919,1901,988,000994,0002,359,296
3Aug 6, 2025 21:503,39021,053,4901,989,000994,0002,363,392
4Aug 6, 2025 21:503,39521,580,9321,992,000996,0002,355,200
5Aug 6, 2025 21:503,41616,912,5702,004,0001,002,0002,531,328
6Aug 6, 2025 21:503,42020,710,8962,007,0001,003,0002,347,008
7Aug 6, 2025 21:503,42016,880,1932,007,0001,003,0002,355,200
8Aug 6, 2025 21:503,42318,104,1742,008,0001,004,0002,527,232
9Aug 6, 2025 21:503,42419,405,3772,009,0001,004,0002,531,328