- from math import sqrt
- n = int(input())
- a = [True]*n
- for i in range(2,int(sqrt(n))+1):
- for j in range(i*2,n,i):
- a[j] = False
- for i in range(n):
- if a[i]: print(i,end = ", ")
We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.
We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!
Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.