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 16:03Yuriy LyfenkoYuriy LyfenkoScore: 37,226Success
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 16:0335,337106,804,74831,096,26402,215,936
2Jun 27, 2021 16:0335,42796,161,60231,176,14602,220,032
3Jun 27, 2021 16:0335,59997,398,57131,326,77202,220,032
4Jun 27, 2021 16:0337,11062,051,27932,657,00002,375,680
5Jun 27, 2021 16:0337,17459,561,03232,713,00002,269,184
6Jun 27, 2021 16:0337,20959,679,68832,744,00002,265,088
7Jun 27, 2021 16:0337,22667,042,06931,736,0001,023,0002,371,584
8Jun 27, 2021 16:0337,35861,144,62531,879,000996,0002,379,776
9Jun 27, 2021 16:0337,37058,824,23930,893,0001,993,0002,269,184
10Jun 27, 2021 16:0337,37459,196,40330,896,0001,993,0002,269,184
11Jun 27, 2021 16:0337,38565,587,19530,906,0001,993,0002,269,184
12Jun 27, 2021 16:0337,39065,539,57032,903,00002,269,184