Computer Science, asked by palakayalalavanya86, 11 months ago

Consider a goods
train with 70 bogies. It starts from
station X to station Y via 58 stations. In
its travel, in every i th station where ‘i’ is
prime, it drops out 2 bogies and
proceeds. Find with how many bogies,
it will reach station Y.

Answers

Answered by piyushnakra1702
5

Answer:

Explanation:

Till 58 there are 16 (2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53) prime numbers.

so if the train drops 2 bogies on each station that means total 32 bogies are dropped.

total bogies were 70

bogies dropped = 32

Bogies left = 70-32 = 38

So, the train reaches at station y with 38 bogies

Similar questions