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 19:04Ivan BessonovIvan BessonovScore: 31,349Success
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 19:0428,09089,306,20224,718,83502,252,800
2May 16, 2024 19:0428,18396,570,85624,801,33402,256,896
3May 16, 2024 19:0428,26183,468,21624,869,45302,265,088
4May 16, 2024 19:0431,21049,968,01227,465,00002,289,664
5May 16, 2024 19:0431,22253,237,74026,458,0001,017,0002,289,664
6May 16, 2024 19:0431,30849,431,29827,551,00002,289,664
7May 16, 2024 19:0431,34951,268,71926,566,0001,021,0002,289,664
8May 16, 2024 19:0431,37049,066,94727,606,00002,265,088
9May 16, 2024 19:0431,39048,696,01227,623,00002,392,064
10May 16, 2024 19:0431,40550,203,25126,613,0001,023,0002,289,664
11May 16, 2024 19:0431,40753,638,52126,615,0001,023,0002,277,376
12May 16, 2024 19:0431,69256,956,30325,897,0001,992,0002,269,184