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 20, 2024 19:22Ivan BessonovIvan BessonovScore: 15,794Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 19:2215,55344,443,53213,687,00002,342,912
2May 20, 2024 19:2215,55839,100,76113,691,00002,347,008
3May 20, 2024 19:2215,59841,512,67812,671,0001,055,0002,342,912
4May 20, 2024 19:2215,64730,856,10012,710,0001,059,0002,289,664
5May 20, 2024 19:2215,64832,706,88013,770,00002,338,816
6May 20, 2024 19:2215,65332,103,94013,775,00002,289,664
7May 20, 2024 19:2215,79432,347,20313,899,00002,289,664
8May 20, 2024 19:2215,79931,938,21711,917,0001,986,0002,338,816
9May 20, 2024 19:2215,80929,957,52913,912,00002,457,600
10May 20, 2024 19:2216,15254,285,54714,213,52502,199,552
11May 20, 2024 19:2216,15481,402,50014,215,17002,199,552
12May 20, 2024 19:2216,74881,083,30814,738,64302,326,528