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 9, 2024 13:10Ivan BessonovIvan BessonovScore: 48,816Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2024 13:1044,051120,326,03538,764,76602,256,896
2May 9, 2024 13:1044,147100,976,49738,849,25002,256,896
3May 9, 2024 13:1044,20696,491,28338,901,68402,265,088
4May 9, 2024 13:1048,73574,682,60141,890,000997,0002,277,376
5May 9, 2024 13:1048,75269,261,89040,907,0001,995,0002,289,664
6May 9, 2024 13:1048,79564,428,14440,943,0001,997,0002,277,376
7May 9, 2024 13:1048,81669,246,19440,960,0001,998,0002,289,664
8May 9, 2024 13:1048,90171,259,25241,032,0002,001,0002,289,664
9May 9, 2024 13:1048,94167,520,31542,067,0001,001,0002,289,664
10May 9, 2024 13:1048,94465,695,42442,070,0001,001,0002,371,584
11May 9, 2024 13:1048,95366,333,41642,078,0001,001,0002,289,664
12May 9, 2024 13:1049,11570,227,03541,211,0002,010,0002,375,680