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:26Ivan BessonovIvan BessonovScore: 16,540Success
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:2616,43031,592,87214,458,00002,289,664
2May 19, 2024 08:2616,45931,903,19913,450,0001,034,0002,342,912
3May 19, 2024 08:2616,45936,892,76513,450,0001,034,0002,289,664
4May 19, 2024 08:2616,47333,371,46813,461,0001,035,0002,289,664
5May 19, 2024 08:2616,48033,496,20514,502,00002,326,528
6May 19, 2024 08:2616,49731,416,45114,517,00002,461,696
7May 19, 2024 08:2616,54037,254,85313,516,0001,039,0002,289,664
8May 19, 2024 08:2616,54037,077,88413,516,0001,039,0002,289,664
9May 19, 2024 08:2617,23134,510,38814,153,0001,010,0002,289,664
10May 19, 2024 08:2617,45588,227,78215,360,36502,187,264
11May 19, 2024 08:2617,54475,093,45015,439,09502,256,896
12May 19, 2024 08:2617,642108,818,90015,524,85902,187,264