Let p(x) be defined on 2≤x≤10 such that
p(x)={x+1⌊x⌋ is primep(y)+(x+1−⌊x⌋)otherwise
where y is the greatest prime factor of ⌊x⌋. Express the range of p in interval notation.
I plotted it, and got a range of [3,7] U [8,10].