Function to be used in DLL for printing numbers or replacement text if number is divisible by 3, 5, or user supplied replacement text.