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 listJun 27, 2021 05:55Yuriy 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
1Jun 27, 2021 05:5500000Error: expected "51046503063932 ", got "51046503063865 "
2Jun 27, 2021 05:5533,35488,749,96629,351,33202,220,032
3Jun 27, 2021 05:5533,36194,702,46629,357,99902,220,032
4Jun 27, 2021 05:5533,39893,502,69629,390,24802,220,032
5Jun 27, 2021 05:5537,08555,556,62631,616,0001,019,0002,375,680
6Jun 27, 2021 05:5537,16659,210,10332,706,00002,379,776
7Jun 27, 2021 05:5537,18057,573,30631,696,0001,022,0002,379,776
8Jun 27, 2021 05:5537,23557,583,83332,767,00002,379,776
9Jun 27, 2021 05:5537,37464,019,06332,889,00002,375,680
10Jun 27, 2021 05:5537,38158,578,95331,899,000996,0002,269,184
11Jun 27, 2021 05:5537,39262,978,60531,908,000997,0002,371,584
12Jun 27, 2021 05:5537,39862,106,21131,882,0001,028,0002,269,184
13Jun 27, 2021 05:5537,42259,010,71030,936,0001,995,0002,269,184