Last active
January 1, 2016 22:08
-
-
Save sasamijp/8207552 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
# -*- encoding: utf-8 -*- | |
require 'prime' | |
def printPrime(num) | |
print " ====== ___====== | |
,, -―-、 _====_==== ̄ ̄== ̄ ̄  ̄ ̄ ̄ | |
/ ヽ _─==三≡≡ ̄== | |
/ ̄ ̄/ /i⌒ヽ、| _== ̄ | |
/ ●/ / /  ̄ | |
/ ト、.,../ ,ー-、 _人人人人人人人人人人人人人人人_ | |
=彳 \\‘ ̄^ >" | |
print num | |
print "は素数だああああああ!!!!!!!!< | |
\\ \  ̄^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^ ̄ | |
/⌒ ヽ ヽ_  ̄──_ _ | |
/ `ー-'  ̄==二= ̄=====三 _ | |
./  ̄ ̄===== ̄_ ̄ ̄ ̄==三三三 ___ | |
===== ̄======= ̄ ̄_==三三 | |
三三三三  ̄ ̄  ̄ ̄==== | |
 ̄ ̄ ̄ ̄===== | |
" | |
end | |
for num in 1..gets.to_i | |
printPrime(num) if num.prime? | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment