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 08:29Ivan BessonovIvan BessonovScore: 47,861Success
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 08:2947,655107,927,23841,936,77502,252,800
2May 5, 2024 08:2947,74570,855,32540,016,0002,000,0002,289,664
3May 5, 2024 08:2947,81770,816,21641,078,0001,001,0002,265,088
4May 5, 2024 08:2947,84971,476,51941,105,0001,002,0002,527,232
5May 5, 2024 08:2947,85663,827,55440,108,0002,005,0002,289,664
6May 5, 2024 08:2947,86065,943,71740,112,0002,005,0002,289,664
7May 5, 2024 08:2947,86167,044,50540,113,0002,005,0002,527,232
8May 5, 2024 08:2947,86763,047,78940,118,0002,005,0002,289,664
9May 5, 2024 08:2947,882123,510,48442,136,14602,252,800
10May 5, 2024 08:2947,96363,027,93640,198,0002,009,0002,289,664
11May 5, 2024 08:2947,973104,753,99342,216,23902,252,800
12May 5, 2024 08:2948,10366,088,73640,316,0002,015,0002,289,664