Given an array of random characters, integers and symbols, WAP to print the sum of all the PRIME or EVEN integers in the array and ignore the remaining. Consider consecutive numbers as a single number

Example 1: given the below input the output will be 2+13+8+22=45

Given Input [2GSD#13x8xU343%^DGF1@22@]

Expected output 45

Example 2: given the below input the output will be 11+23+164+44=242

i think OP is newbie and doesn't familiar with daniweb homework policy. He take WAP as Write A Programme , i think.

WAP to print the sum of all the PRIME or EVEN integers in the array and ignore the remaining.

if you think that somebody here will write program for you then i think you are at wrong place ,in order to get assistance you need to prove that you made efforts to solve this question(you can prove this by showing us your code you have so far).

create an array variable and then give input to it. then check each element if they are numbers , if they are numbers then check if they are prime or even number then add the number to a variable(sum+=arr[i]).don't forget to initialize the sum variable to 0.

INGGRIS
How to connect device scanner with visual basic, its analogy I made button scan in vb and typing button scan in press scanner live and walk .. how? Help ...

For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
MsgBox(subCtrl.Text)
End If
If subCtrl.GetType Is ...

I am trying to write some code for project euler problem 10, in which you are required to find the sum of all the prime numbers less than 2 million. ...