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 14, 2024 15:05Ivan BessonovIvan BessonovScore: 35,182Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2024 15:0532,46699,712,20128,570,51702,256,896
2May 14, 2024 15:0532,60692,371,15828,693,03102,256,896
3May 14, 2024 15:0532,635103,147,04028,719,14802,256,896
4May 14, 2024 15:0535,11856,978,83528,911,0001,993,0002,273,280
5May 14, 2024 15:0535,12857,828,13329,883,0001,030,0002,289,664
6May 14, 2024 15:0535,16552,846,38528,949,0001,996,0002,289,664
7May 14, 2024 15:0535,18254,129,48828,963,0001,997,0002,289,664
8May 14, 2024 15:0535,19354,109,99828,972,0001,998,0002,269,184
9May 14, 2024 15:0535,29054,131,81929,052,0002,003,0002,289,664
10May 14, 2024 15:0535,34458,453,38730,100,0001,003,0002,289,664
11May 14, 2024 15:0535,41052,460,91729,151,0002,010,0002,527,232
12May 14, 2024 15:0535,47456,243,58029,203,0002,014,0002,289,664