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:02Ivan BessonovIvan BessonovScore: 17,561Success
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:0217,33535,171,20713,221,0002,034,0002,347,008
2May 20, 2024 19:0217,50135,268,99014,375,0001,026,0002,289,664
3May 20, 2024 19:0217,50842,511,15814,380,0001,027,0002,289,664
4May 20, 2024 19:0217,51539,196,35115,413,00002,289,664
5May 20, 2024 19:0217,51631,139,59513,488,0001,926,0002,342,912
6May 20, 2024 19:0217,54131,953,37914,407,0001,029,0002,285,568
7May 20, 2024 19:0217,56131,046,04314,424,0001,030,0002,285,568
8May 20, 2024 19:0218,26932,306,59214,068,0002,009,0002,347,008
9May 20, 2024 19:0218,36038,062,59314,138,0002,019,0002,424,832
10May 20, 2024 19:0219,11676,670,99316,822,05602,191,360
11May 20, 2024 19:0219,13062,716,45416,834,01902,203,648
12May 20, 2024 19:0219,38172,463,57717,055,71602,318,336