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 16, 2024 20:59Ivan BessonovIvan BessonovScore: 31,715Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 20:5931,69151,967,60725,896,0001,992,0002,400,256
2May 16, 2024 20:5931,69353,510,02726,894,000996,0002,527,232
3May 16, 2024 20:5931,70555,491,13025,908,0001,992,0002,523,136
4May 16, 2024 20:5931,70552,396,09226,904,000996,0002,289,664
5May 16, 2024 20:5931,70753,717,67525,909,0001,993,0002,277,376
6May 16, 2024 20:5931,71353,911,04625,914,0001,993,0002,289,664
7May 16, 2024 20:5931,71553,014,97826,913,000996,0002,269,184
8May 16, 2024 20:5931,79252,958,97525,979,0001,998,0002,289,664
9May 16, 2024 20:5931,87250,579,59126,044,0002,003,0002,281,472
10May 16, 2024 20:5934,45290,050,97130,317,93902,252,800
11May 16, 2024 20:5934,520118,561,30630,377,51202,256,896
12May 16, 2024 20:5934,573104,096,04630,424,43402,265,088