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 20:44Ivan BessonovIvan BessonovScore: 31,568Success
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 20:4431,34153,684,16426,559,0001,021,0002,273,280
2May 16, 2024 20:4431,36557,087,08526,579,0001,022,0002,289,664
3May 16, 2024 20:4431,38953,519,65527,622,00002,289,664
4May 16, 2024 20:4431,41553,776,05426,622,0001,023,0002,289,664
5May 16, 2024 20:4431,54255,496,36026,729,0001,028,0002,277,376
6May 16, 2024 20:4431,54264,576,47826,729,0001,028,0002,269,184
7May 16, 2024 20:4431,56851,041,15326,752,0001,028,0002,285,568
8May 16, 2024 20:4431,70254,785,21225,906,0001,992,0002,273,280
9May 16, 2024 20:4431,70952,537,58526,908,000996,0002,289,664
10May 16, 2024 20:4441,930102,388,91436,898,49002,265,088
11May 16, 2024 20:4441,94392,110,95336,910,26702,265,088
12May 16, 2024 20:4441,963116,374,60336,927,56002,256,896