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 18:22Ivan BessonovIvan BessonovScore: 30,200Success
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 18:2229,98353,123,51825,371,0001,014,0002,273,280
2May 16, 2024 18:2230,05248,330,09125,429,0001,017,0002,273,280
3May 16, 2024 18:2230,06552,067,18125,440,0001,017,0002,277,376
4May 16, 2024 18:2230,08849,525,20725,459,0001,018,0002,277,376
5May 16, 2024 18:2230,09751,310,29425,467,0001,018,0002,269,184
6May 16, 2024 18:2230,10253,752,41625,472,0001,018,0002,289,664
7May 16, 2024 18:2230,20053,968,82625,554,0001,022,0002,273,280
8May 16, 2024 18:2230,28550,564,04026,651,00002,281,472
9May 16, 2024 18:2230,34097,759,81426,699,03102,256,896
10May 16, 2024 18:2230,34851,165,57725,679,0001,027,0002,273,280
11May 16, 2024 18:2230,35098,145,13426,707,88202,260,992
12May 16, 2024 18:2230,360101,618,35326,716,66702,256,896