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 7, 2024 16:15Ivan BessonovIvan BessonovScore: 48,581Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2024 16:1544,67498,642,06139,313,41702,260,992
2May 7, 2024 16:1544,913108,949,48939,523,51302,265,088
3May 7, 2024 16:1545,09493,271,55639,682,56502,256,896
4May 7, 2024 16:1548,52374,088,77441,684,0001,016,0002,289,664
5May 7, 2024 16:1548,56870,829,78141,723,0001,017,0002,289,664
6May 7, 2024 16:1548,57271,898,11541,726,0001,017,0002,289,664
7May 7, 2024 16:1548,58169,538,48441,734,0001,017,0002,277,376
8May 7, 2024 16:1548,70370,259,96941,863,000996,0002,289,664
9May 7, 2024 16:1548,73470,857,29641,889,000997,0002,277,376
10May 7, 2024 16:1548,73670,998,65741,891,000997,0002,289,664
11May 7, 2024 16:1548,73870,704,69040,895,0001,994,0002,277,376
12May 7, 2024 16:1548,76866,455,75240,920,0001,996,0002,289,664