$_=`factor`;print/:( \d+)\1?$/|/: 2 /&!/: 2 2 /|/:$/?-1:1