def prime_replace(x, l = []):
    lst = []
    string = str(x)
    for n in range(10):
    	newstr = string
        for i in l:
            newstr = newstr.replace(string[i], str(n))
        lst.append(int(newstr))
    return lst 

print prime_replace(x = 56243, l = [2, 3])