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 18:47Ivan BessonovIvan BessonovScore: 16,944Success
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 18:4816,79433,574,22113,724,0001,055,0002,289,664
2May 18, 2024 18:4816,79740,676,62214,781,00002,297,856
3May 18, 2024 18:4716,80834,656,70313,735,0001,056,0002,293,760
4May 18, 2024 18:4916,88238,751,12413,866,000990,0002,289,664
5May 18, 2024 18:4716,89837,073,57012,888,0001,982,0002,289,664
6May 18, 2024 18:4816,91832,031,99712,903,0001,985,0002,285,568
7May 18, 2024 18:4816,92335,418,34413,900,000992,0002,289,664
8May 18, 2024 18:4716,92442,384,52512,908,0001,985,0002,297,856
9May 18, 2024 18:4816,92731,785,72412,910,0001,986,0002,289,664
10May 18, 2024 18:4916,93145,778,58513,906,000993,0002,301,952
11May 18, 2024 18:4716,93335,711,57612,915,0001,986,0002,289,664
12May 18, 2024 18:4916,93435,147,45513,909,000993,0002,289,664
13May 18, 2024 18:4916,93541,411,45213,910,000993,0002,301,952
14May 18, 2024 18:4916,93532,288,11813,910,000993,0002,289,664
15May 18, 2024 18:4716,93931,735,91213,913,000993,0002,289,664
16May 18, 2024 18:4916,94030,813,54713,914,000993,0002,289,664
17May 18, 2024 18:4816,94028,051,40812,920,0001,987,0002,289,664
18May 18, 2024 18:4716,94343,117,37713,916,000994,0002,289,664
19May 18, 2024 18:4916,94442,927,22712,923,0001,988,0002,293,760
20May 18, 2024 18:4916,94831,561,32712,926,0001,988,0002,289,664
21May 18, 2024 18:4717,08031,229,55014,028,0001,002,0002,289,664
22May 18, 2024 18:4817,23533,296,81614,156,0001,011,0002,289,664
23May 18, 2024 18:4817,33331,060,81413,220,0002,033,0002,297,856
24May 18, 2024 18:4917,40339,336,10713,273,0002,042,0002,301,952
25May 18, 2024 18:4717,45131,457,54213,310,0002,047,0002,289,664
26May 18, 2024 18:4717,46433,468,01113,319,0002,049,0002,301,952
27May 18, 2024 18:4817,49431,801,88413,343,0002,052,0002,400,256
28May 18, 2024 18:4817,57087,022,34215,461,85302,285,568
29May 18, 2024 18:4817,571102,829,93415,462,47002,285,568
30May 18, 2024 18:4917,60286,192,27515,489,63702,285,568
31May 18, 2024 18:4717,96468,659,94315,808,55702,289,664
32May 18, 2024 18:4718,07457,018,14115,905,49502,289,664
33May 18, 2024 18:4818,08080,865,66115,910,54402,277,376
34May 18, 2024 18:4918,11291,605,23615,938,98502,281,472
35May 18, 2024 18:4918,11694,218,76215,941,70602,281,472
36May 18, 2024 18:4718,22287,656,83316,035,20802,289,664