The last one is free of errors.
"Try as I may, I cannot get the correct answer".
1st one: The semi colon is in the wrong space, and nevertheless is unnecessary.
2nd one: There is no need for full stop.
3rd one: Semi colon is not needed and however is in wrong space.
4th one: Correct:)
Hope I helped,
~FabSafxo