<html>
<head>
<script type='text/javascript' src='test.js'>
function solver(){
var a= document.getElementsByTagName(’INPUT’);
var text = a[0].value;
var prime=0;
var comp=0;
var line=”;
for(i=0;i<text.length;i++){
var c = text.charAt(i);
var comparison =IsNumeric(c);
if(comparison){
var n=Number(c);
if((n!=1)&&(n!=0)){
if(isprime(n)){
prime+=n;
}
if(!isprime(n)){
comp+=n;
}
}
}
else if((line.length<25)&&(comparison==false)){
c=c.charCodeAt(0);
c++;
c=c.toString();
temp=c;
c=String.fromCharCode(temp);
line+=c;
}
}
var sum = 1*prime*comp;
line+=sum;
document.submitform.solution.value=line;
}
function IsNumeric(sText){
var str =”+sText;
var ValidChars = “0123456789?;
var IsNumber=true;
if (ValidChars.indexOf(str.charAt(0)) == -1){
IsNumber = false;
}
return IsNumber;
}
function isprime(n) {
var primer = true;
var ValidChars = “2357?;
var str =n.toString();
if(ValidChars.indexOf(str.charAt(0)) == -1){
primer =false;
}
return primer;
}</script>
</head>
<body>
<!--
www.hackthissite.org/missions/prog/1/ -->
</body>
</html>
how is this wrong?