|
|
back to boardShow all messages Hide all messagesWA 5 rakeshvarna 27 Dec 2010 21:40 HI I seem to be getting WA 5 everytime. Any ideas or hints on the test? Here is what i do: if start is 1 cout 1 for i=stop to start and for odd numbers for j= 2 to floor(sqrt(i)) add the divisors if it is a primeNumber cout<<i cout the number with least triviality. Re: WA 5 Vladimir Plyashkun [CSU] 17 Aug 2012 14:07 in test5 I = J. Try this 2 2 aswear 2. Edited by author 17.08.2012 14:07 |
|
|