When I was purchased mine, not the PIN, but another code was also set for my telephone, called "Phone lock". As the seller didn't remembered for this code for a strange reason, I had to look around, and I was figured out, that (if I remember well) the "custom reset" is able to clear the telephone's own code also. It's possible, You have a problem with this.
You can find the secret Samsung codes here:
http://gleez.com/articles/did-you-know/samsung-secret-codes
BUT PLEASE NOTE: with a wrong usage, it can even harm Your telephone!!
So I suggest to read this forum, and try first the
http://cellphoneforums.net/samsung/t126710-phone-locked-enter-password.html
and try the "8889874397" code, as the Samsung general code, or the custom reset code, as If I remember well, one of them worked for me.
I hope it helps, but please do not forget to save all Your data before You will try to remove the password!!