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 20, 2024 19:11Ivan BessonovIvan BessonovScore: 16,836Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 19:1116,20542,877,39612,223,0002,037,0002,338,816
2May 20, 2024 19:1116,24929,051,17912,257,0002,042,0002,347,008
3May 20, 2024 19:1116,26731,531,08712,270,0002,045,0002,347,008
4May 20, 2024 19:1116,31330,040,98713,330,0001,025,0002,338,816
5May 20, 2024 19:1116,32731,480,51712,316,0002,052,0002,338,816
6May 20, 2024 19:1116,33334,198,56712,320,0002,053,0002,289,664
7May 20, 2024 19:1116,34736,849,80213,358,0001,027,0002,289,664
8May 20, 2024 19:1116,35843,121,59313,367,0001,028,0002,342,912
9May 20, 2024 19:1116,36729,672,82113,375,0001,028,0002,338,816
10May 20, 2024 19:1116,37428,504,56913,380,0001,029,0002,289,664
11May 20, 2024 19:1116,38636,121,16013,390,0001,030,0002,342,912
12May 20, 2024 19:1116,80572,065,23114,788,04702,195,456
13May 20, 2024 19:1116,83692,382,31414,815,75002,191,360
14May 20, 2024 19:1116,83666,598,19214,815,94002,203,648
15May 20, 2024 19:1116,84192,366,43214,819,88702,195,456
16May 20, 2024 19:1116,85699,247,14914,833,03602,199,552
17May 20, 2024 19:1116,91370,759,64214,883,56202,326,528
18May 20, 2024 19:1117,05233,911,50813,006,0002,000,0002,289,664
19May 20, 2024 19:1117,10040,288,10713,042,0002,006,0002,289,664
20May 20, 2024 19:1117,15532,251,29713,084,0002,012,0002,289,664
21May 20, 2024 19:1117,20538,737,21213,122,0002,018,0002,285,568
22May 20, 2024 19:1117,22730,798,27413,139,0002,021,0002,347,008
23May 20, 2024 19:1117,23537,378,75513,145,0002,022,0002,289,664
24May 20, 2024 19:1117,45531,767,37613,312,0002,048,0002,338,816