What are the rules? My javascript (I was doing a little javascript hacking (bookmarklets OWN) earlier so might as well use it) didn't churn out anything that worked. I took rules of the original post..
CODE
for(poc=1;poc<13;poc++){
for(ptc=poc+1;ptc<14;ptc++){
for(moc=0;moc<13;moc++){
if((moc!=poc)&&(moc!=ptc)){
for(mtc=moc+1;mtc<14;mtc++){
if((mtc!=poc)&&(mtc!=ptc)){
st="20719652661508"
if(mtc>ptc){
st=st.substring(0,mtc)+'-'+st.substring(mtc)
if(moc>ptc){
st=st.substring(0,moc)+'-'+st.substring(moc)
st=st.substring(0,ptc)+'+'+st.substring(ptc)
st=st.substring(0,poc)+'+'+st.substring(poc)
}else{
st=st.substring(0,ptc)+'+'+st.substring(ptc)
if(moc>poc){
st=st.substring(0,moc)+'-'+st.substring(moc)
st=st.substring(0,poc)+'+'+st.substring(poc)
}else{
st=st.substring(0,poc)+'+'+st.substring(poc)
st=st.substring(0,moc)+'-'+st.substring(moc)
}}}else{
st=st.substring(0,ptc)+'+'+st.substring(ptc)
if(mtc>poc){
st=st.substring(0,mtc)+'-'+st.substring(mtc)
if(moc>poc){
st=st.substring(0,moc)+'-'+st.substring(moc)
st=st.substring(0,poc)+'+'+st.substring(poc)
}else{
st=st.substring(0,poc)+'+'+st.substring(poc)
st=st.substring(0,moc)+'-'+st.substring(moc)
}}else{
st=st.substring(0,poc)+'+'+st.substring(poc)
st=st.substring(0,mtc)+'-'+st.substring(mtc)
st=st.substring(0,moc)+'-'+st.substring(moc)
}}
st=st.replace('66','66==');
st=st.replace('6+6','6+6==');
st=st.replace('6-6','6-6==');
//document.write(st+" = "+eval(st)+"<br>")
//eval(st) never equals 1508 :(
if(eval(st)){document.write(st+"<br>")}
}}}}}}
edit) and yes I know hardcoding things like this is bad D:.. I just typed 'first minus' and stuff and did a bunch of replace alls at the end

Comment/Reply (w/o sign-up)