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 listMay 19, 2024 08:20Ivan BessonovIvan BessonovScore: 16,983Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 08:2016,43234,821,65213,428,0001,032,0002,289,664
2May 19, 2024 08:2016,45233,246,61313,444,0001,034,0002,289,664
3May 19, 2024 08:2016,50631,554,80713,488,0001,037,0002,289,664
4May 19, 2024 08:2016,51341,502,60514,531,00002,289,664
5May 19, 2024 08:2016,51538,116,14413,495,0001,038,0002,289,664
6May 19, 2024 08:2016,57831,422,45413,547,0001,042,0002,330,624
7May 19, 2024 08:2016,98331,629,44712,953,0001,992,0002,338,816
8May 19, 2024 08:2017,12634,501,56213,062,0002,009,0002,330,624
9May 19, 2024 08:2017,439106,501,06015,346,10802,256,896
10May 19, 2024 08:2017,45691,160,43515,360,84102,187,264
11May 19, 2024 08:2017,46587,974,30115,369,53402,187,264
12May 19, 2024 08:2018,26741,567,97114,066,0002,009,0002,289,664