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 19, 2024 07:17Ivan BessonovIvan BessonovScore: 16,542Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 07:1416,42332,814,51114,452,00002,338,816
2May 19, 2024 07:1716,42731,914,56113,424,0001,032,0002,338,816
3May 19, 2024 07:1716,45529,602,43513,446,0001,034,0002,342,912
4May 19, 2024 07:1416,47034,315,21213,459,0001,035,0002,289,664
5May 19, 2024 07:1716,47534,283,48113,463,0001,035,0002,289,664
6May 19, 2024 07:1416,47635,939,28914,499,00002,289,664
7May 19, 2024 07:1716,47731,250,11013,465,0001,035,0002,289,664
8May 19, 2024 07:1416,49930,564,50413,482,0001,037,0002,289,664
9May 19, 2024 07:1416,52240,713,26614,539,00002,326,528
10May 19, 2024 07:1416,52536,694,56013,504,0001,038,0002,289,664
11May 19, 2024 07:1416,52737,043,42113,506,0001,038,0002,289,664
12May 19, 2024 07:1716,53032,442,00414,546,00002,347,008
13May 19, 2024 07:1716,54231,742,16513,518,0001,039,0002,289,664
14May 19, 2024 07:1716,54938,914,58313,523,0001,040,0002,326,528
15May 19, 2024 07:1716,57239,063,21013,542,0001,041,0002,289,664
16May 19, 2024 07:1416,67333,048,95913,624,0001,048,0002,334,720
17May 19, 2024 07:1716,80280,722,59314,785,40002,187,264
18May 19, 2024 07:1416,80891,000,68514,790,95902,252,800
19May 19, 2024 07:1717,12338,715,03613,059,0002,009,0002,326,528
20May 19, 2024 07:1417,21736,756,91314,141,0001,010,0002,289,664
21May 19, 2024 07:1417,37981,514,24215,293,48402,187,264
22May 19, 2024 07:1717,39890,563,69115,310,53602,187,264
23May 19, 2024 07:1717,44477,861,75015,350,81202,183,168
24May 19, 2024 07:1417,50482,246,05215,403,22402,322,432