From: "roboter Y." Date: 2012-04-13T20:55:19+09:00 Subject: Arguments with Funktion i want a ruby program, is have 2 Arguments(a,b) ,which output the Prime zahlen between a and b. hier is my program. but it's wrong. i don't know where is the problem. can anyone help me? a,b=ARGV def prime (a,b) for i in 2..b f=true for p in 2...i if i%p==0 f =!f break end end print i, "--" if f end end sushu=prime(a,b) p "the prime between #{a} and #{b} is #{sushu}." -- Posted via http://www.ruby-forum.com/.