Skip to content

Instantly share code, notes, and snippets.

@sasamijp
Created June 9, 2013 13:19
Show Gist options
  • Save sasamijp/5743496 to your computer and use it in GitHub Desktop.
Save sasamijp/5743496 to your computer and use it in GitHub Desktop.
できた
# -*- encoding: utf-8 -*-
input = gets.to_i
sosu = true
i = 2
while i < input do
if input%i == 0 then
sosu = false
break
end
i = i + 1
end
if sosu == true then
print "\n                                     ====== ___======\n
            ,, -―-、         _====_==== ̄ ̄== ̄ ̄     ̄ ̄ ̄\n
          /     ヽ  _─==三≡≡ ̄==\n
    / ̄ ̄/  /i⌒ヽ、| _== ̄\n
   /  ●/   / /     ̄\n 
  /     ト、.,../ ,ー-、    _人人人人人人人人人人人人人人人_\n
 =彳      \\‘ ̄^      >"
print input
print "は素数だああああああ!!!!!!!!<\n
           \\ \    ̄^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^ ̄\n
         /⌒ ヽ ヽ_  ̄──_ _\n
        /     `ー-'  ̄==二= ̄=====三 _\n
      ./              ̄ ̄===== ̄_ ̄ ̄ ̄==三三三   ___\n
                            ===== ̄======= ̄ ̄_==三三\n
                                   三三三三  ̄ ̄  ̄ ̄====\n
                                           ̄ ̄ ̄ ̄=====\n
\n
" else print "\n                                     ====== ___======\n
            ,, -―-、         _====_==== ̄ ̄== ̄ ̄     ̄ ̄ ̄\n
          /     ヽ  _─==三≡≡ ̄==\n
    / ̄ ̄/  /i⌒ヽ、| _== ̄\n
   /  ●/   / /     ̄\n 
  /     ト、.,../ ,ー-、    _人人人人人人人人人人人人人人人_\n
 =彳      \\‘ ̄^      >"
print input
print "は素数じゃないいいい!!!!!!!!<\n
           \\ \    ̄^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^ ̄\n
         /⌒ ヽ ヽ_  ̄──_ _\n
        /     `ー-'  ̄==二= ̄=====三 _\n
      ./              ̄ ̄===== ̄_ ̄ ̄ ̄==三三三   ___\n
                            ===== ̄======= ̄ ̄_==三三\n
                                   三三三三  ̄ ̄  ̄ ̄====\n
                                           ̄ ̄ ̄ ̄=====\n
\n
"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment