Submit | All submissions | Best solutions | Back to list |
Problem hidden on 2013-02-11 05:48:57 by Innova12
TUTORIAL - Tutorial |
Alice is a teacher of Mathematics.He already the taught the students about the Prime Numbers in previous class.
Now he want to test their knowledge so he has coded a question which involves the series of the type a*n+b where a & b are prime numbers.
Alice handover his code to the monitor of the class i.e Bob. Bob is very fond of coding .So he changes delibrately all the even terms by b*n+a .
Bob has made first nine terms hidden.
if(n is odd) ans=a*n+b
if(n is even) ans=b*n+a
Your aim is to find the ans of first 5 terms i.e n=1 to n=5.
You can Download Binary code from here - www.innovafest.com/math_exe
Alice is a teacher of Mathematics.He already taught the students about the Prime Numbers in previous class.
Now he wants to test their knowledge so he has coded a question which involves the series of the type a*n+b where a & b are prime numbers.
Alice handover his code to the monitor of the class i.e Bob. Bob is very fond of coding .So he changes delibrately all the even terms by b*n+a .
Bob has made first nine terms hidden.
If(n is odd) ans=a*n+b
If(n is even) ans=b*n+a
Your aim is to find the ans of first 5 terms i.e n=1 to n=5.
You can Download Binary code from here - EXE FILE
Submit the first five term of the series seprated by spaces
Added by: | Innova12 |
Date: | 2013-01-27 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | TEXT |
Resource: | Self |