


def 			lowerCAmelCase (		lowerCAmelCase_=28_123 )-> str:
				lowerCAmelCase_ :      List[Any]    				=				[1] * (limit + 1)

				for i in range(2 ,   int(limit**0.5 ) + 1 ):
								sum_divs[i * i] += i
								for k in range(i + 1 ,   limit // i + 1 ):
												sum_divs[k * i] += k + i

				lowerCAmelCase_ :      Optional[int]    				=				set()
				lowerCAmelCase_ :      Dict    				=				0

				for n in range(1 ,   limit + 1 ):
								if sum_divs[n] > n:
												abundants.add(lowerCAmelCase_ )

								if not any((n - a in abundants) for a in abundants ):
												res += n

				return res


if __name__ == "__main__":
						print(solution())



import csv

import tweepy

# Twitter API credentials
_UpperCAmelCase			:  int     =""""""
_UpperCAmelCase			:  Optional[int]     =""""""
_UpperCAmelCase			:  Dict     =""""""
_UpperCAmelCase			:  str     =""""""



def 			lowerCAmelCase (		lowerCAmelCase_ )-> None:
				# authorize twitter, initialize tweepy
				lowerCAmelCase_ :      Optional[int]    				=				tweepy.OAuthHandler(lowerCAmelCase_ ,   lowerCAmelCase_ )
				auth.set_access_token(lowerCAmelCase_ ,   lowerCAmelCase_ )
				lowerCAmelCase_ :      Any    				=				tweepy.API(lowerCAmelCase_ )

				# initialize a list to hold all the tweepy Tweets
				lowerCAmelCase_ :      Dict    				=				[]

				# make initial request for most recent tweets (200 is the maximum allowed count)
				lowerCAmelCase_ :      Optional[int]    				=				api.user_timeline(screen_name=lowerCAmelCase_ ,   count=200 )

				# save most recent tweets
				alltweets.extend(lowerCAmelCase_ )

				# save the id of the oldest tweet less one
				lowerCAmelCase_ :      str    				=				alltweets[-1].id - 1

				# keep grabbing tweets until there are no tweets left to grab
				while len(lowerCAmelCase_ ) > 0:
								print(f"""getting tweets before {oldest}""" )

								# all subsequent requests use the max_id param to prevent duplicates
								lowerCAmelCase_ :      Optional[Any]    				=				api.user_timeline(
								    screen_name=lowerCAmelCase_ ,   count=200 ,   max_id=lowerCAmelCase_ )

								# save most recent tweets
								alltweets.extend(lowerCAmelCase_ )

								# update the id of the oldest tweet less one
								lowerCAmelCase_ :      Optional[Any]    				=				alltweets[-1].id - 1

								print(f"""...{len(lowerCAmelCase_ )} tweets downloaded so far""" )

				# transform the tweepy tweets into a 2D array that will populate the csv
				lowerCAmelCase_ :      Union[str, Any]    				=				[[tweet.id_str, tweet.created_at, tweet.text] for tweet in alltweets]

				# write the csv
				with open(f"""new_{screen_name}_tweets.csv""" ,   '''w''' ) as f:
								lowerCAmelCase_ :      Optional[int]    				=				csv.writer(lowerCAmelCase_ )
								writer.writerow(['''id''', '''created_at''', '''text'''] )
								writer.writerows(lowerCAmelCase_ )


if __name__ == "__main__":
						# pass in the username of the account you want to download
						get_all_tweets("""FirePing32""")