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:01Yuriy LyfenkoYuriy LyfenkoScore: 46,452Success
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:0145,92873,574,50639,407,0001,010,0002,269,184
2Jun 27, 2021 05:0146,11966,940,23640,585,00002,383,872
3Jun 27, 2021 05:0146,13161,773,39339,581,0001,014,0002,383,872
4Jun 27, 2021 05:0146,26765,945,97640,715,00002,265,088
5Jun 27, 2021 05:0146,31166,900,25539,736,0001,018,0002,379,776
6Jun 27, 2021 05:0146,42467,401,34339,857,000996,0002,375,680
7Jun 27, 2021 05:0146,45266,942,25340,878,00002,387,968
8Jun 27, 2021 05:0146,46371,046,51238,893,0001,994,0002,269,184
9Jun 27, 2021 05:0146,54968,520,61539,964,000999,0002,269,184
10Jun 27, 2021 05:0147,35099,493,65641,667,61902,220,032
11Jun 27, 2021 05:0147,688108,963,41841,965,03802,215,936
12Jun 27, 2021 05:0147,70099,287,04341,975,95702,215,936