def hantei(n): if n<=1: return False m=int(n**0.5) for i in range(2,m+1): if n%i==0: return False return True s=input() n=len(s) ans=0 for bit in range(1<<(n-1)): cnt="" for i in range(n-1): cnt+=s[i] if bit&(1<