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 5, 2024 09:08Ivan BessonovIvan BessonovScore: 45,693Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 09:0845,44361,811,13038,991,000999,0002,527,232
2May 5, 2024 09:0845,57561,852,89338,101,0002,005,0002,273,280
3May 5, 2024 09:0845,61870,977,62238,137,0002,007,0002,289,664
4May 5, 2024 09:0845,65963,018,77439,176,0001,004,0002,387,968
5May 5, 2024 09:0845,67374,415,82138,183,0002,009,0002,289,664
6May 5, 2024 09:0845,68467,096,72038,192,0002,010,0002,269,184
7May 5, 2024 09:0845,69361,776,02938,200,0002,010,0002,273,280
8May 5, 2024 09:0845,81163,922,72838,299,0002,015,0002,523,136
9May 5, 2024 09:0845,92760,507,18339,406,0001,010,0002,289,664
10May 5, 2024 09:0846,258112,209,33940,706,66102,260,992
11May 5, 2024 09:0846,274111,186,74240,721,00502,265,088
12May 5, 2024 09:0846,34397,537,86840,781,77202,260,992