Skip to content

Instantly share code, notes, and snippets.

@sasamijp
Created June 9, 2013 09:04
Show Gist options
  • Save sasamijp/5742889 to your computer and use it in GitHub Desktop.
Save sasamijp/5742889 to your computer and use it in GitHub Desktop.
rubyでみじかくできるかなと思ったけどあまり変わっていない
# -*- encoding: utf-8 -*-
n = 2
while n < 100 do
sosu = true
i = 2
while i < n do
if n%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 n
print "は素数だああああああ!!!!!!!!<\n
           \\ \    ̄^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^ ̄\n
         /⌒ ヽ ヽ_  ̄──_ _\n
        /     `ー-'  ̄==二= ̄=====三 _\n
      ./              ̄ ̄===== ̄_ ̄ ̄ ̄==三三三   ___\n
                            ===== ̄======= ̄ ̄_==三三\n
                                   三三三三  ̄ ̄  ̄ ̄====\n
                                           ̄ ̄ ̄ ̄=====\n
\n
"
end
n = n + 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment