Skip to content

Instantly share code, notes, and snippets.

@uu59
Last active December 14, 2015 22:49
Show Gist options
  • Save uu59/5161511 to your computer and use it in GitHub Desktop.
Save uu59/5161511 to your computer and use it in GitHub Desktop.
# -- coding: utf-8
require "prime"
n=ARGV[0].to_i
Prime.each(n){|p| puts "#{n}=#{p}+#{n-p}" if Prime.prime?(n-p)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment