prime number questions

This topic has expert replies
Newbie | Next Rank: 10 Posts
Posts: 2
Joined: Fri Feb 23, 2007 1:12 pm

prime number questions

by ijinusean » Sun Apr 15, 2007 12:14 pm
S is the sum of 1 to 30 inclusive, what is the greatest prime number in S?

Can someone help?

Senior | Next Rank: 100 Posts
Posts: 46
Joined: Sun Mar 04, 2007 6:27 am

by Tame the CAT » Sun Apr 15, 2007 2:31 pm
S = 15(30+1) = 450

The prime factors of 450 are 2, 3, 3, 5, 5

So, the answer should be 5.

Senior | Next Rank: 100 Posts
Posts: 33
Joined: Sat Apr 14, 2007 8:29 am

by ns88 » Sun Apr 15, 2007 3:09 pm
sum of all integers to n =n(n+1)/2

=30*31/2=465

find greatest prime factor by diving by the least

i'll use 3

465/3= 155

next prime is 5

155/5= 31

can't divide any further, ans = 31

Legendary Member
Posts: 559
Joined: Tue Mar 27, 2007 1:29 am
Thanked: 5 times
Followed by:2 members

by Cybermusings » Mon Apr 16, 2007 3:07 am
ns88's answer is the right one

Senior | Next Rank: 100 Posts
Posts: 70
Joined: Sun Mar 18, 2007 9:35 am
Location: mumbai
Followed by:1 members

by RAGS » Tue Apr 17, 2007 8:38 am
The question should say Greatest Prime factor in S