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 listJun 24, 2024 17:25Franek KortaFranek KortaScore: 2,168,288Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 24, 2024 17:192,144,9121,954,430,4021,887,522,81702,240,512
2Jun 24, 2024 17:252,158,2751,957,126,2841,899,282,25502,285,568
3Jun 24, 2024 17:252,162,0031,963,200,8111,902,562,57002,281,472
4Jun 24, 2024 17:192,163,8991,968,853,4161,904,231,28702,281,472
5Jun 24, 2024 17:252,168,2881,962,129,1701,908,093,69402,277,376
6Jun 24, 2024 17:252,168,8081,972,097,7311,908,551,45502,289,664
7Jun 24, 2024 17:192,169,4401,968,853,8421,909,107,62702,289,664
8Jun 24, 2024 17:252,171,2481,971,445,2531,910,698,10502,281,472
9Jun 24, 2024 17:252,180,6041,976,553,6511,918,931,56702,285,568