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 listDec 28, 2022 02:47Robert BurkeRobert BurkeScore: 19,047Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 02:4518,61576,966,05616,381,27502,220,032
2Dec 28, 2022 02:4518,62985,994,31516,393,27402,232,320
3Dec 28, 2022 02:4718,71770,540,60416,470,74002,228,224
4Dec 28, 2022 02:4718,78376,978,95916,529,12102,232,320
5Dec 28, 2022 02:4518,79771,941,65616,541,54902,232,320
6Dec 28, 2022 02:4718,82869,441,76516,568,68102,228,224
7Dec 28, 2022 02:4718,93832,062,76516,665,00002,392,064
8Dec 28, 2022 02:4518,95845,238,24915,641,0001,042,0002,523,136
9Dec 28, 2022 02:4719,00532,673,35416,724,00002,408,448
10Dec 28, 2022 02:4719,00746,585,60214,636,0002,090,0002,486,272
11Dec 28, 2022 02:4519,03244,014,91816,748,00002,396,160
12Dec 28, 2022 02:4519,04045,939,37015,708,0001,047,0002,396,160
13Dec 28, 2022 02:4719,04741,322,92716,761,00002,387,968
14Dec 28, 2022 02:4519,04835,250,83515,715,0001,047,0002,535,424
15Dec 28, 2022 02:4519,06739,699,11715,731,0001,048,0002,396,160
16Dec 28, 2022 02:4519,07839,856,69815,740,0001,049,0002,273,280
17Dec 28, 2022 02:4519,20733,079,26315,908,000994,0002,387,968
18Dec 28, 2022 02:4719,21145,814,57115,912,000994,0002,396,160
19Dec 28, 2022 02:4519,21640,792,86115,916,000994,0002,273,280
20Dec 28, 2022 02:4719,21740,931,35914,922,0001,989,0002,392,064
21Dec 28, 2022 02:4519,22341,074,85514,926,0001,990,0002,273,280
22Dec 28, 2022 02:4719,22430,789,28915,922,000995,0002,396,160
23Dec 28, 2022 02:4719,23241,028,66714,933,0001,991,0002,494,464
24Dec 28, 2022 02:4719,23443,661,49115,931,000995,0002,535,424