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 29, 2022 03:14Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2022 03:1400000Error: expected "51659288263585 ", got "51659288263548 "stderr
2Dec 29, 2022 03:1429,27251,918,61725,759,00002,387,968
3Dec 29, 2022 03:1429,41349,567,19623,892,0001,991,0002,273,280
4Dec 29, 2022 03:1429,41448,545,47823,893,0001,991,0002,375,680
5Dec 29, 2022 03:1429,41756,396,67723,896,0001,991,0002,273,280
6Dec 29, 2022 03:1429,42252,076,64623,900,0001,991,0002,527,232
7Dec 29, 2022 03:1429,42353,845,18423,901,0001,991,0002,523,136
8Dec 29, 2022 03:1429,44150,677,14623,836,0002,072,0002,285,568
9Dec 29, 2022 03:1429,45949,432,47224,927,000997,0002,285,568
10Dec 29, 2022 03:1429,47751,200,66024,903,0001,037,0002,285,568
11Dec 29, 2022 03:1431,00084,089,10227,279,69302,248,704
12Dec 29, 2022 03:1431,01994,132,28627,296,73802,256,896
13Dec 29, 2022 03:1431,053111,494,11927,326,90302,252,800