I am not sure whether the problem you have is to show that n does not divide 2^n-1 ( that is they are relatively prime) or to show that if 2^n-1 is prime than n is prime ( in which case i am not sure that the latter even holds). However, if it is the former here is another approach to this problem: Suppose the contrary: that is let [tex]2^n-1[/tex] be a prime number and n a number not relatively prime to it. Now, let [tex]p_1[/tex] be a prime divisor of n, and let k be the smallest positive integer for which [tex]p_1[/tex] divides [tex]2^k-1[/tex]. Now from Fermat's little theorem we would get that [tex]p_1[/tex] is also a factor of [tex]2^{p_1-1}-1[/tex]. Hence [tex]k\leq p_1-1<p_1.[/tex]
Now your task is to prove that q divides n. Assume the contrary, by expressing n=hq+r.
I will stop here before i get in trouble from PF Moderators!
Hope this was helpful.