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 18, 2024 16:36Ivan BessonovIvan BessonovScore: 19,267Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 16:3618,28537,072,74914,080,0002,011,0002,289,664
2May 18, 2024 16:3618,30743,296,59214,097,0002,013,0002,400,256
3May 18, 2024 16:3618,31837,761,92514,105,0002,015,0002,289,664
4May 18, 2024 16:3618,31832,226,64315,113,0001,007,0002,306,048
5May 18, 2024 16:3618,33445,694,05414,118,0002,016,0002,289,664
6May 18, 2024 16:3618,35839,153,08415,146,0001,009,0002,306,048
7May 18, 2024 16:3619,26747,377,71715,958,000997,0002,297,856
8May 18, 2024 16:3619,28142,262,68915,969,000998,0002,289,664
9May 18, 2024 16:3619,28636,779,27614,976,0001,996,0002,310,144
10May 18, 2024 16:3620,03294,202,56017,628,58702,297,856
11May 18, 2024 16:3620,08694,962,85317,675,55002,281,472
12May 18, 2024 16:3620,43171,798,98717,979,09802,277,376