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 17, 2024 11:22Ivan BessonovIvan BessonovScore: 23,308Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 11:2223,22347,810,89319,415,0001,021,0002,289,664
2May 17, 2024 11:2223,22546,547,87219,417,0001,021,0002,289,664
3May 17, 2024 11:2223,23141,338,03519,421,0001,022,0002,289,664
4May 17, 2024 11:2223,25347,110,12920,463,00002,289,664
5May 17, 2024 11:2223,26948,157,13120,477,00002,289,664
6May 17, 2024 11:2223,29842,370,57020,502,00002,269,184
7May 17, 2024 11:2223,30848,586,95819,486,0001,025,0002,265,088
8May 17, 2024 11:2223,32353,639,07519,498,0001,026,0002,289,664
9May 17, 2024 11:2223,50050,670,23719,646,0001,034,0002,289,664
10May 17, 2024 11:2223,63782,117,03220,800,19702,265,088
11May 17, 2024 11:2223,69592,913,82920,851,39902,252,800
12May 17, 2024 11:2223,76490,113,68320,912,55902,252,800