A tough week on the stock market ended quietly Friday. Major indexes notched modest gains, not nearly enough to make up for the four previous days of losses. It wound up being the second-worst week for the market so far this year.

There was no major catalyst to move the market one way or another Friday. Biotechnology stocks, battered over the last week, were among the top gainers, while energy stocks lagged as the price of oil fell.

On Friday:

The Dow Jones industrial average rose 34.43 points, or 0.2 percent, to 17,712.66.

The S&P 500 index added 4.87 points, or 0.2 percent, to 2,061.02.

The Nasdaq composite rose 27.86 points, or 0.6 percent, to 4,891.22.

For the week:

The Dow is down 414.99 points, or 2.3 percent.

The S&P 500 index is down 47.08 points, or 2.2 percent.

The Nasdaq is down 135.20 points, or 2.7 percent.

For the year:

The Dow is down 110.41 points, or 0.6 percent.

The S&P 500 index is up 2.12 points, or 0.1 percent.

The Nasdaq is up 155.16 points, or 3.3 percent.