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 19, 2024 08:03Ivan BessonovIvan BessonovScore: 16,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 19, 2024 08:0316,32734,533,77412,316,0002,052,0002,289,664
2May 19, 2024 08:0316,36135,460,07013,370,0001,028,0002,289,664
3May 19, 2024 08:0316,45843,765,58413,449,0001,034,0002,289,664
4May 19, 2024 08:0316,47031,797,27613,459,0001,035,0002,289,664
5May 19, 2024 08:0316,78545,324,04113,716,0001,055,0002,334,720
6May 19, 2024 08:0316,89071,996,79114,863,54102,183,168
7May 19, 2024 08:0316,94145,142,37814,908,00002,334,720
8May 19, 2024 08:0317,00332,077,40212,968,0001,995,0002,289,664
9May 19, 2024 08:0317,02632,373,62912,986,0001,997,0002,289,664
10May 19, 2024 08:0317,38631,658,41813,260,0002,040,0002,334,720
11May 19, 2024 08:0317,39570,541,46715,307,79402,183,168
12May 19, 2024 08:0317,59868,440,19415,486,50102,187,264