Created
June 12, 2020 10:12
-
-
Save Svastikkka/458da1335175316e54bebfb124bb800f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
num=int(input()) | |
count=1 | |
arr=[] | |
while len(arr)<num: | |
res=3*count+2 | |
if res%4!=0: | |
arr.append(res) | |
count=count+1 | |
for i in range(0,len(arr)): | |
print(arr[i],end=" ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Terms of AP