How long does it take for penicilin to cure syphillis?

At once. The microbes die within a few hours, and the body begins healing itself. It will take several days for the initial ulcer or secondary rash to go away (if it doesn't there may be more going on than just syphilis), and if there has been damage to bone, brain, spinal cord, or blood vessels, these may never heal fully.