#Pyth, 23 20 bytes
Pyth, 23 20 bytes
This is 1-indexed.
WhQ=-QqsPZsPhZ=+Z1;Z #Explanation
Explanation
WhQ=-QqsPZsPhZ=+Z1;Z - Full program. Takes input from Standard input. WhQ - While Q is still higher than 0. sPZ - Sum of the prime factors of Z. sPhZ - Sum of the prime factors of Z+1. q - If the above are equal: =-Q - Decrement Q by 1 if they are equal, and by 0 if they are not. =+Z1; - Increment Z on each iteration. Z - Output Z.