Skip to content

Instantly share code, notes, and snippets.

@sasamijp
Last active January 1, 2016 22:08
Show Gist options
  • Save sasamijp/8207552 to your computer and use it in GitHub Desktop.
Save sasamijp/8207552 to your computer and use it in GitHub Desktop.
あけおめ
# -*- 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