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 22:35Yuriy LyfenkoYuriy LyfenkoScore: 36,627Success
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 22:3331,42990,223,11027,657,36502,220,032
2Jun 27, 2021 22:3331,466101,289,38827,690,09202,224,128
3Jun 27, 2021 22:3331,473114,957,12727,695,95002,215,936
4Jun 27, 2021 22:3531,49998,252,43927,718,70502,215,936
5Jun 27, 2021 22:3331,50897,359,63727,726,76002,220,032
6Jun 27, 2021 22:3531,508101,589,94327,727,28902,224,128
7Jun 27, 2021 22:3531,52796,567,32627,743,34102,220,032
8Jun 27, 2021 22:3331,53086,925,87227,745,98302,273,280
9Jun 27, 2021 22:3331,76891,168,47827,955,77202,232,320
10Jun 27, 2021 22:3536,62759,920,21431,225,0001,007,0002,375,680
11Jun 27, 2021 22:3536,66455,926,07231,256,0001,008,0002,383,872
12Jun 27, 2021 22:3536,66861,366,90730,252,0002,016,0002,269,184
13Jun 27, 2021 22:3536,67856,192,73331,269,0001,008,0002,265,088
14Jun 27, 2021 22:3536,68255,089,96031,272,0001,008,0002,379,776
15Jun 27, 2021 22:3536,76454,499,43731,341,0001,011,0002,269,184
16Jun 27, 2021 22:3536,82561,398,29431,394,0001,012,0002,269,184
17Jun 27, 2021 22:3536,89759,373,68932,469,00002,379,776
18Jun 27, 2021 22:3536,95259,667,46331,502,0001,016,0002,269,184