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:07Ivan BessonovIvan BessonovScore: 45,941Success
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:0745,74062,301,66939,245,0001,006,0002,383,872
2May 5, 2024 09:0745,76964,127,23638,264,0002,013,0002,289,664
3May 5, 2024 09:0745,85865,600,03540,355,00002,289,664
4May 5, 2024 09:0745,87063,560,81639,357,0001,009,0002,289,664
5May 5, 2024 09:0745,89161,460,16338,365,0002,019,0002,289,664
6May 5, 2024 09:0745,93661,709,56039,414,0001,010,0002,527,232
7May 5, 2024 09:0745,94160,124,59639,418,0001,010,0002,277,376
8May 5, 2024 09:0746,088102,146,39040,557,68702,260,992
9May 5, 2024 09:0746,111110,968,76340,577,90402,269,184
10May 5, 2024 09:0746,11461,744,42439,566,0001,014,0002,289,664
11May 5, 2024 09:0746,14962,983,44039,596,0001,015,0002,269,184
12May 5, 2024 09:0746,468106,213,57040,891,85202,265,088