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 15:17Ivan BessonovIvan BessonovScore: 19,330Success
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 15:0519,16747,108,06314,883,0001,984,0002,289,664
2May 18, 2024 15:1719,19240,643,36315,896,000993,0002,301,952
3May 18, 2024 15:0519,20936,131,57915,910,000994,0002,289,664
4May 18, 2024 15:0519,21147,603,65615,912,000994,0002,289,664
5May 18, 2024 15:1719,21143,880,42415,912,000994,0002,289,664
6May 18, 2024 15:1719,21443,052,51014,919,0001,989,0002,301,952
7May 18, 2024 15:0519,22332,851,74815,921,000995,0002,297,856
8May 18, 2024 15:0519,22442,041,99715,922,000995,0002,306,048
9May 18, 2024 15:0519,23032,370,86315,927,000995,0002,301,952
10May 18, 2024 15:0519,26842,946,24815,959,000997,0002,289,664
11May 18, 2024 15:1719,28644,583,52014,976,0001,996,0002,289,664
12May 18, 2024 15:1719,32442,235,48015,005,0002,000,0002,289,664
13May 18, 2024 15:1719,33042,536,63715,009,0002,001,0002,301,952
14May 18, 2024 15:0519,37345,811,91615,043,0002,005,0002,289,664
15May 18, 2024 15:1719,41634,617,24115,076,0002,010,0002,289,664
16May 18, 2024 15:1719,41733,985,71615,077,0002,010,0002,289,664
17May 18, 2024 15:0519,87738,371,41517,492,00002,289,664
18May 18, 2024 15:0520,00659,302,11717,605,63002,281,472
19May 18, 2024 15:0520,05077,897,73717,644,38402,281,472
20May 18, 2024 15:1720,06186,568,27817,653,41202,289,664
21May 18, 2024 15:1720,08439,640,52817,674,00002,289,664
22May 18, 2024 15:1720,08683,571,45017,675,49602,277,376
23May 18, 2024 15:1720,12065,624,31617,705,92802,289,664
24May 18, 2024 15:0520,67998,054,34718,197,57002,285,568