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 5, 2025 21:47Aniruddha DebAniruddha DebScore: 70,030Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 5, 2025 21:4769,65681,989,30661,297,00002,428,928
2Aug 5, 2025 21:4769,86892,615,04261,484,00002,531,328
3Aug 5, 2025 21:4769,95381,618,33461,559,00002,531,328
4Aug 5, 2025 21:4769,96487,673,22261,568,00002,531,328
5Aug 5, 2025 21:4770,03079,955,66661,626,00002,424,832
6Aug 5, 2025 21:4770,06989,461,95760,651,0001,010,0002,531,328
7Aug 5, 2025 21:4770,08093,937,69661,670,00002,428,928
8Aug 5, 2025 21:4770,08485,993,72761,674,00002,531,328
9Aug 5, 2025 21:4770,09891,493,95161,686,00002,420,736