#Ruby, 122 77 bytes
require'prime'
->n{p Prime.take(n).map{|x|1-2/(Rational(x)**2+1)}.reduce(:*)}
Defines an anonymous function that takes a number and outputs the result to STDOUT as (numerator/denominator)
.
#Ruby, 122 77 bytes
require'prime'
->n{p Prime.take(n).map{|x|1-2/(Rational(x)**2+1)}.reduce(:*)}
Defines an anonymous function that takes a number and outputs the result to STDOUT as (numerator/denominator)
.