11086  Composite Prime
Moderator: Board moderators
11086  Composite Prime
After long time i got a number theory problem with such an undefined statement like "N integers are positivenatural numbers". What does natural number means? Shall we try upto INFINITY?? Would you please tell me what would be the trouble if you had specified it with specific number. By the way i got this problem accepted and still confused about it's data range. Pathetic?!!?
Change your view,your life will be changed.
 little joey
 Guru
 Posts: 1080
 Joined: Thu Dec 19, 2002 7:37 pm
The capital letter N is used in three different ways in this problem:
At least that is how I interpret it, and I got AC with it....
the set of natural numbers is normally denoted by N
First line of each test case contains one integer N.
Al three are different, and the last one is not the number of input values per case, but the input value itself.Constraints
 N ≤ 2^20
At least that is how I interpret it, and I got AC with it....
 Martin Macko
 A great helper
 Posts: 481
 Joined: Sun Jun 19, 2005 1:18 am
 Location: European Union (Slovak Republic)
need some explaination
i cant understand the problem..
can any one explain it with i/o ... plssss it will help mee
thank's in advance
rocky
can any one explain it with i/o ... plssss it will help mee
thank's in advance
rocky
 Martin Macko
 A great helper
 Posts: 481
 Joined: Sun Jun 19, 2005 1:18 am
 Location: European Union (Slovak Republic)
Re: need some explaination
I can give you an example of few first composite primes: 4, 6, 9, 10, 14, ...Rocky wrote:i cant understand the problem..
can any one explain it with i/o ... plssss it will help mee
The numbers 1, 2, 3, 5, 7, 11, 13 are not composite, therefore they are not composite primes. The numbers 8 and 12 have nontrivial composite divisors (eg. 4), so they are not composite primes, too.
help again
thank's for reply]
actually i want the explain with the problem i/o...
can you help plsss with the problem i/o..
thank's in advance
rocky
actually i want the explain with the problem i/o...
can you help plsss with the problem i/o..
thank's in advance
rocky
soory
ahh got it ... i think more deeply for this and in another way it is simpleee..
thanks
rocky
thanks
rocky

 New poster
 Posts: 1
 Joined: Sun Sep 10, 2006 7:34 pm
Thank you little joey. May be i am not good at guessing and solved this problem for data range 2^311. Your assumtion allowed me to get accepted in time 1.182 sec.little joey wrote:The capital letter N is used in three different ways in this problem:
the set of natural numbers is normally denoted by NFirst line of each test case contains one integer N.Al three are different, and the last one is not the number of input values per case, but the input value itself.Constraints
 N ≤ 2^20
At least that is how I interpret it, and I got AC with it....
Looking at the progammers who gets TLE in 100(3n+1), I feel how good good programmer I am and looking at the programmer get ACC in 10757(Interpreting SQL) i feel how bad I am.
You have to find the Composite Prime for M. M is the Subset of N. N is the set of natural number and N<=2^20.
So what it means:: Test case is N (Natural number and <=2^20). Then following N integers are positivenatural numbers (difference between positivenatural numbers and natural numbers is '0'). So all N input values are positive natural numbers means greater than 0 and less then or equal to N (N<=2^20).
[quote]
So what it means:: Test case is N (Natural number and <=2^20). Then following N integers are positivenatural numbers (difference between positivenatural numbers and natural numbers is '0'). So all N input values are positive natural numbers means greater than 0 and less then or equal to N (N<=2^20).
[quote]
confused
can someone explain what elements come in the set, I can't figure out the symbol between x and y , is it multiplication????
A number m is a member of M if m = x*y where x > 1 and y > 1. Both x and y are natural numbers.
If I will myself do hashing, then who will do coding !!!