c program to generate prime numbers from 1 to 100.Also count prime numbers. ​

Answers

Answer 1

Answer:

Step-by-step explanation:

#include <stdio.h>

int main()

{

  int num1, num2, flag_var, i, j;

 

  /* Ask user to input the from/to range

   * like 1 to 100, 10 to 1000 etc.

   */

  printf("Enter two range(input integer numbers only):");

  //Store the range in variables using scanf

  scanf("%d %d", &num1, &num2);

 

  //Display prime numbers for input range

  printf("Prime numbers from %d and %d are:\n", num1, num2);

  for(i=num1+1; i<num2; ++i)

  {

     flag_var=0;

     for(j=2; j<=i/2; ++j)

     {

        if(i%j==0)

        {

           flag_var=1;

           break;

        }

     }

     if(flag_var==0)

        printf("%d\n",i);

 }

 return 0;

}


Related Questions

(-3.8)+(-21.14)+(-0.55)

Answers

= (-3.8)+(-21.14)+(-0.55)= -3.8-21.14-0.55= -25.49

please mark this answer as brainlist

Which of the following theorems verifies that ANPO- AXYZ?

Answers

AA, cause they’ve given you two angles already
AA, both angles were given

Which of the following is equivalent to 0 equals 3 x squared minus 12 x minus 15 when completing the square?

Answers

Answer:

x = 5, -1

Step-by-step explanation:

0 = 3x^2 - 12x - 15 or

3x^2 - 12x - 15 = 0

By solving for x, use the Quadratic Formula.

… x = 5 and/or -1

After completing the square the quadratic equation [tex]3x^{2} -12x-15=0[/tex] is equivalent to [tex](x-2)^2=3^2[/tex].

What is a quadratic equation?

"It is a polynomial equation with degree two."

What is completing the square method?

"It is a method that is used for converting a quadratic expression of the form [tex]ax^2 + bx + c[/tex] to [tex]a(x - h)^2 + k[/tex] "

For given example,

We have been given a quadratic equation.

[tex]3x^{2} -12x-15=0[/tex]

First we divide above quadratic equation by 3,

[tex]x^{2} -4x-5=0\\\\x^2-4x=5[/tex]                             ................(i)

Now for completing the square first find [tex](\frac{-b}{2a} )[/tex]

[tex]\frac{-b}{2a}\\=\frac{-(-4)}{(2)(1)}\\\\ =\frac{4}{2}\\\\ =2[/tex]

Add [tex](\frac{-b}{2a} )^2[/tex] on both the sides of equation (i),

[tex]x^{2} -4x+4=5+4\\\\(x-2)^2=9\\\\(x-2)^2=3^2[/tex]

Therefore, after completing the square the quadratic equation [tex]3x^{2} -12x-15=0[/tex] is equivalent to [tex](x-2)^2=3^2[/tex].

Learn more about completing the square here:

https://brainly.com/question/4822356

#SPJ2

Hey guys! I have this problem and I dont really understand how to solve it, could you guys help me? :' )

Answers

Answer:

Step-by-step explanation:

Answer:

-7

Step-by-step explanation:

Translate this sentence into an equation. 43 is the sum of 11 and Carlos age. Use the variable c to represent Carlos age.

Answers

Answer:

c + 11 = 43

Step-by-step explanation:

C = Carlos age

11 = The number added

43 = The number added plus carlos' age

c +11 = 43

c = 43 - 11

c = 32

Carlos' age is 32 years.

Answer:

C+11=43

Step-by-step explanation:

C= Carlos age

11= added number

43= Carlos age +added number

C+11=43

C=43-11

C=32

Age of Carlos 32.  :)

Geometry please help me!!!!

Answers

Answer:

Step-by-step explanation:

Pregnancy length in horses. Bigger mammals tend to carry their young longer before giving birth. The length of horse pregnancies from conception to birth varies according to a roughly Normal distribution, with mean 336 days and standard deviation 3 days. Use the 68–95–99.7 rule to answer the following questions.Required:What percent of horse pregnancies are longer than 339 days?

Answers

Answer:

  16%

Step-by-step explanation:

The difference between the time of interest (339 days) and the mean (336 days) is 3 days, which is exactly 1 standard deviation.

The 68-95-99.7 rule tells you that 68% of pregnancies will be within 1 standard deviation. The remaining 32% will be evenly split between pregnancies that are longer than 339 days and ones that are shorter than 333 days. So, half of 32%, or 16%, will be longer than 339 days.

How many three-letter (unordered) sets are possible that use the letters q, u, a, k, e, s at most once each? (No Response) 20 sets

Answers

Answer:

20sets

Step-by-step explanation:

Since we are to select 3 unordered letters from the word q, u, a, k, e, s, we will apply the combination rule.

For example if r objects are to be selected from n pool of objects, this can be done in nCr number of ways.

nCr = n!/(n-r)!r!

Since the total number of letter in the word q, u, a, k, e, s is 6letters and we are to form 3 letters from it unordered, this can be done in 6C3 number of ways.

6C3 = 6!/(6-3)!3!

6C3 = 6!/3!3!

6C3 = 6×5×4×3×2×1/3×2×1×3×2×1

6C3 = 6×5×4/3×2

6C3 = 120/6

6C3 = 20

Hence 20sets of selection are possible

NO LINKS OR ANSWERING QUESTIONS YOU DON'T KNOW!!! PLEASE answer thoroughly. Chapter 9 part 2

4. How can you determine the maximum number of solutions for a polynomial? How are these counted on the graph?

Answers

9514 1404 393

Answer:

  a) the degree of the polynomial

  b) count the x-intercepts, with attention to multiplicity

Step-by-step explanation:

The Fundamental Theorem of Algebra tells you the number of zeros of a polynomial is equal to the degree of the polynomial. That is, for some polynomial p(x), the number of solutions to p(x)=0 will be the degree of p.

__

On a graph, a real zero of the polynomial will be an x-intercept. The "multiplicity" of a zero is the degree of the factor giving rise to that zero. When the multiplicity is even, the graph does not cross the x-axis at the x-intercept. The greater the multiplicity, the "flatter" the graph is at the x-intercept.

If all solutions (zeros) are distinct, then the number of real solutions can be found by counting the number of x-intercepts of the graph.

_____

By way of illustration, the attached graph is of a 6th-degree polynomial with 6 real zeros. From left to right, they are -1 (multiplicity 1), 1 (multiplicity 2), 4 (multiplicity 3). The higher multiplicities are intended to show the flattening that occurs at the x-intercept, and the fact that the graph does not cross the x-axis where the multiplicity is even.

Find the particular solution to a differential equation whose general solution and initial condition are given. (C is the constant of integration.) x(t)

Answers

Him oh phvhocchovhohh

what is the area of the triangle ://

Answers

Answer:

The area of a triangle is:

Area = 1/2(bh)

Area = 1/2(70)

Area = 35 square inches

Let me know  if this helps!

Answer:

A = 35

Step-by-step explanation:

a^2 + b^2 = c^2

10^2 + b^2 = 12^2

100 + b^2 = 144

144 - 100 = b^2

b^2 = 44

b = 6.6

6.6 x 10 = 66/2 = 33

7 - 6.6 = 0.4

10 x 0.4 = 4/2 = 2

Area = 33 + 2

Area = 35

How many cabinets must he sell to break even?

Answers

Answer:   He must sell 7 cabinets.

Step-by-step explanation:

So it gives us the equations y= 400x + 1400  and the equations  y=600x and to find the break even point we need to set the two equations equal each other to solve for x.

400x + 1400 = 600x

-400x               -400x

1400 = 200x

 x = 7    

Suppose that 67.2% of all adults with type 2 diabetes also suffer from hypertension. After developing a new drug to treat type 2 diabetes, a team of researchers at a pharmaceutical company wanted to know if their drug had any impact on the incidence of hypertension for diabetics who took their drug. The researchers selected a random sample of 500 participants who had been taking their drug as part of a recent large-scale clinical trial and found that 317 suffered from hypertension.
The researchers want to use a one‑sample z ‑test for a population proportion to see if the proportion of type
2 diabetics who have hypertension while taking their new drug, p, is different from the proportion of all type
2 diabetics who have hypertension. They decide to use a significance level of ???? = 0.05.
A. Determine the p value for this test.
B. Determine the value of the z test statistic.

Answers

Answer: A. p-value = 0.04

              B. z = - 1.77

Step-by-step explanation: To calculate z test statistic or z-score for a population proportion, first find the proportion (p-hat):

[tex]p_{hat}[/tex] = [tex]\frac{317}{500}[/tex] = 0.634

Then determine the standard deviation:

[tex]\sigma = \sqrt{\frac{p_{hat}(1-p_{hat})}{n} }[/tex]

[tex]\sigma = \sqrt{\frac{0.634(0.366)}{500} }[/tex]

[tex]\sigma = \sqrt{0.00046 }[/tex]

[tex]\sigma[/tex] = 0.0215

Calculating z-score:

[tex]z=\frac{p_{hat}-p}{\sigma}[/tex]

[tex]z=\frac{0.634-0.672}{0.0215}[/tex]

[tex]z=-1.77[/tex]

Z-test for the population proportion is z = - 1.77

P-value is the probability describing the data if null hypothesis is true, i.e.:

P(z< -1.77)

Using z-score table, the probability is:

P(z< -1.77) = 0.04

p-value = 0.04

P-value for this test is p-value = 0.04.

how many feet is in one centimeter and how many inches is in 1 feet?​

Answers

Answer:

12 inches r in a foot

0 feet r in a centimeter

Step-by-step explanation:

Answer:

0.032 feet in a centimeter and 12 inches in 1 foot

Step-by-step explanation:

hope it helps pls mark as brainliest!

Solve 2 - (7x + 5) = 13 - 3x (make sure to type the number only)

Answers

Answer:

x = -4

Step-by-step explanation:

2 - (7x + 5) = 13 - 3x

add the binomial (7x +5) to both sides

2 = (7x + 5) + 13 - 3x

combine like terms

2 = 4x + 18

subtract 18 from both sides

-16 = 4x

divide by 4

x = -4

Answer:

-4

Step-by-step explanation:

Distribute the negative signs to the values in the parentheses

2 -7x - 5 = 13 - 3x

Add like terms:

-7x - 3 = 13 - 3x

Add 3x to both sides:

-4x - 3 = 13

Add 3 to both sides:

-4x = 16

Divide both sides by -4:

x = -4

please help. urgent. calculate the value of: E= x^3+1/x^3 if 1/x+x=4
(picture below)

Answers

Answer:

52

Step-by-step explanation:

1. We see if we cube both sides of the second equation, then it looks more similar to the first equation (E = x^3 + 1/x^3)

(1/x + x)^3 = 4^3

1/x^3 + 3/x + 3x + x^3 = 64

2. Now we rearrange, because we see x^3 + 1/x^3 in the first equation in this equation

x^3 + 1/x^3 + 3x + 3/x = 64

3. We look at 3x + 3/x and see that it looks like the second equation, so we try factoring it

x^3 + 1/x^3 + 3(x + 1/x) = 64

we know x + 1/x = 4, so 3(x + 1/x) = 12

x^3 + 1/x^3 +12 = 64

4. Now we subtract and get our answer

x^3 + 1/x^3 = 52

Please help me guys :)
Question:
In exercises 1 through 4, find the one-sided limits lim x->2(left) f(x) and limx-> 2(right) from the given graph of f and determine whether lim x->2 f(x) exists.​

Answers

Step-by-step explanation:

For a left-hand limit, we start at the left side and move right, and see where the function goes as we get close to the x value.

For a right-hand limit, we start at the right side and move left, and see where the function goes as we get close to the x value.

If the two limits are equal, then the limit exists.  Otherwise, it doesn't.

1.  As we approach x = 2 from the left, f(x) approaches -2.

lim(x→2⁻) f(x) = -2

As we approach x = 2 from the right, f(x) approaches 1.

lim(x→2⁺) f(x) = 1

The limits are not the same, so the limit does not exist.

lim(x→2) f(x) = DNE

2. As we approach x = 2 from the left, f(x) approaches 4.

lim(x→2⁻) f(x) = 4

As we approach x = 2 from the right, f(x) approaches 2.

lim(x→2⁺) f(x) = 2

The limits are not the same, so the limit does not exist.

lim(x→2) f(x) = DNE

3. As we approach x = 2 from the left, f(x) approaches 2.

lim(x→2⁻) f(x) = 2

As we approach x = 2 from the right, f(x) approaches 2.

lim(x→2⁺) f(x) = 2

The limits are equal, so the limit exists.

lim(x→2) f(x) = 2

4. As we approach x = 2 from the left, f(x) approaches 2.

lim(x→2⁻) f(x) = 2

As we approach x = 2 from the right, f(x) approaches infinity.

lim(x→2⁺) f(x) = ∞

The limits are not the same, so the limit does not exist.

lim(x→2) f(x) = DNE

Classify the following random variable according as either discrete or continuous. The temperature in degrees Celsius on January 1st in a certain city
A continuous
B discrete

Answers

Answer:

continuous

Step-by-step explanation:

A quantity like temperature is a continuous random variable. A continuous random variable is different from a discrete random variable because it can take on many values infinitely.

From the question, measuring the Temperature in degrees can take on many different values because there are an uncountable number of possible temperatures that could be taken.

According to the number line, what is the distance between points A and B?
А
B
VX
- 16 - 14 -12 -10 -8 -6 4-2
0 2
4
6
8 10 12 14 16
U6 units
X 7 units
12 units
14 units

Answers

Answer:

Below!

Step-by-step explanation:

Please provide the two points (A & B) so I can help you out with the question or...

use the distance formula: [tex]d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}[/tex]

where the first point = [tex](x_1,y_1)[/tex] & the second point: [tex](x_2,y_2)[/tex]

the value of 2√4-3√27+√16+√225 is​

Answers

Answer:

hope this help you

sorry if it is mistake

Find the measure of ∠BEF
Please HELP ASAP

Answers

Answer:

100°

Step-by-step explanation:

We know that angles EFD and AEF are the same as they are alternate interior angles.

We also can note that BEF and AEF are supplementary, meaning their angle lengths will add up to 180°.

So we can create an equation:

(2x + 60) + (3x + 20) = 180

Combine like terms:

5x + 80 = 180

Subtract 80 from both sides

5x = 100

Divide both sides by 5

x = 20.

Now we can use this to find the measure of BEF.

[tex]2\cdot20 + 60[/tex]

[tex]40 + 60 = 100[/tex]

Hope this helped!

Answer:

BEF = 100

Step-by-step explanation:

The angles are same side interior angles and same side interior angles add to 180 degrees

2x+60 + 3x+20 = 180

Combine like terms

5x+80 = 180

Subtract 80

5x = 100

Divide by 5

5x/5 = 100/5

x = 20

We want BEF

BEF = 2x+60

      = 2x+60

      = 2*20 +60

     = 40+60

     = 100

find the length of the arc . round your answers to the nearest tenth

Answers

Answer:

10.2

Step-by-step explanation:

Length of arc=(2*pi*r)*(theta/360)

Length of arc=(2*pi*3)*(195/360)=10.2

WHY CAN'T ANYONE HELP ME PLEASE?A ​40% solution of fertilizer is to be mixed with a ​80% solution of fertilizer in order to get 80 gallons of a ​70% solution. How many gallons of the ​40% solution and ​80% solution should be​ mixed? 40% solution =? gallons, 80% solution =? gallons

Answers

Answer:

40% solution = 20 gallons

80% solution = 60 gallons

Step-by-step explanation:

x = gallons of 40% solution

y = gallons of 80% solution

Total volume is:

x + y = 80

Total amount of fertilizer is:

0.40 x + 0.80 y = 0.70 (80)

Solve by substitution.

0.40 x + 0.80 (80 − x) = 0.70 (80)

0.40 x + 64 − 0.80 x = 56

0.40 x = 8

x = 20

y = 60

Factor: 2(4-y)-j(4-y)

Answers

Answer:

(2-j)(4-y)

Step-by-step explanation:

Factoring using grouping,

(2-j)(4-y)

Christina's time for a race was 22.3 seconds. Another​ runner's time was 4.41 seconds faster. Write and evaluate an equation with a variable to find the difference between Christina​'s time and the other​ runner's time.

Answers

Answer:

[tex]Difference = 4.41[/tex]

Step-by-step explanation:

Given

Represent Christina's time with C and the other runner's time with R

C = 22.3

R = 4.41 + C

Required

Determine the difference using an equation

The difference between both runner's time is as follows;

[tex]Difference = R - C[/tex]

Substitute 4.41 + C for R

[tex]Difference = 4.41 + C - C[/tex]

[tex]Difference = 4.41[/tex]

Hence, the difference is 4.41 seconds

You drive 15 miles in 0.1hours . How fast did you travel if 8=d/t

Answers

Answer:

150

Step-by-step explanation:

[tex]distance = 15 miles\\time = 0.1 hours\\\\Speed = \frac{Distance}{time}\\ Speed = \frac{15}{0.1}\\ Speed =150[/tex]

Answer:

[tex]150mph[/tex]

Step-by-step explanation:

Given:

s=15miles

t=0.1hours

Required:

v=?

Formula:

[tex]v = \frac{s}{t} [/tex]

Solution:

[tex]v = \frac{s}{t} = \frac{15m}{0.1h} = \frac{150m}{1h} = 150mph[/tex]

Hope this helps ;) ❤❤❤

Help me please thank y’all

Answers

Answer: x=60°

Step-by-step explanation:

The sum of the angles of a triangle is 180°. With this, we can find x°.

33+87+x=180                         [combine like terms]

120+x=180                               [subtact both sides by 120]

x=60°

Answer:

60 degrees

Step-by-step explanation:

All the angles in a triangle add up to 180 degrees.

We know two angles, 33 degrees and 87 degrees.

Now we have to find the last one.

So we make an equation to solve this.

33 + 87 + x = 180

120 + x = 180

Subtracting 120 fr0m both sides get us,

120 - 120 + x = 180 -120

x = 60

60 degrees

We can check by adding all three angles by substituting 60 for x,

33 + 87 + 60 = 120 + 60 = 180 degrees

How many different 6-digit phone numbers do not contain the digit 8? Assume that any digit in the phone number can be any of the remaining numbers.

Answers

The answer is, 900000 different 6-digit phone numbers do not contain the digit 8. Hope that helps

A cubical water tank is 80 cm broad. find the volume of tank?​

Answers

Answer:

512000

Step-by-step explanation:

l=80cm

v=l^3

=80^3

=512000cm^3

1. How tall, in feet, would you be if you were 1,000,000 inches tall?

Answers

Answer:

500

Step-by-step explanation:

The answer to the problem is 500
Other Questions
what is 10% of $14,580 What is meant by "consent of the governed" in the Declaration of Independence? PLS HELP ME OB THIS QUESTION I WILL MARK YOU AS BRAINLIEST IF YOU KNOW THE ANSWER!! Find the remainder in the Taylor series centered at the point a for the following function. Then show that limn[infinity]Rn(x)=0 for all x in the interval of convergence. f(x)=cos x, a= /2 1 person = 40 min = 1 bag, 4 person = ? min = 1575 bags Who is the President of Nepal ? (2021) Badger Corporation declared a stock distribution to all shareholders of record on March 25 of this year. Shareholders will receive one share of Badger stock for each 10 shares of stock they already own. Madison Cheesehead owns 1,000 shares of Badger stock with a tax basis of $100 per share. The fair market value of the Badger stock was $110 per share on March 25 of this year.Required:a. What amount of taxable dividend income, if any, does Madison recognize in 2009? b. What is Madison's income tax basis in her new and existing stock in Badger Corporation, assuming the distribution is non-taxable? c. How would you answer questions a and b if Madison was offered the choice between 1 share of stock in Badger for each 10 shares she owned or $100 cash for each 10 shares she owned in Badger? Whats the food chain for algae,seal lion,zooplankton,squid and salmon n The Beginnings of the Maasai, the daughter of the Maasai explains the relationship between the Maasai and their sky god Enkai. She explains how a volcanic eruption sent Enkai and the cattle into the sky. In order to save the cattle, Enkai created a giant tree that allowed them to walk back to earth. Then, Enkai entrusted Neiterkob, the narrators father, and his tribe to care for the cattle. As a result, the cattle are sacred to the Maasai, and the Maasai maintain a close connection with Enkai. Is this an effective summary of the story? a.Yes, because it includes key ideas from the beginning, middle, and end, and it explains the conflict and the resolution. b.Yes, because it focuses on the details from the beginning, the obstacles from the middle, and the resolution from the end. c.No, because it is uses too many specific names from the beginning, middle, and end, and it has a vague resolution. d.No, because it leaves out details from the beginning, the obstacles from the middle, and the resolution from the end. The twentieth century saw an accelerating shift from traditional manufacturing activities to production procedures requiring large investments in raw materials and labor.a. Trueb. False Which event from Acts II and III demonstrates the recurring motif of " Fair is foul, and fouls is fair ? The rhinestones in costume jewelry are glass with index of refraction 1.50. To make them more reflective, they are often coated with a layer of silicon monoxide of index of refraction 2.00. What is the minimum coating thickness needed to ensure that light of wavelength 480 nm and of perpendicular incidence will be reflected from the two surfaces of the coating with fully constructive interference? What was Muhammads first revelation from the angel Gabriel? He must conquer neighboring lands. He must reject the teachings of Jesus. He must travel to Mecca. He must worship and obey only Allah. 4. How does this document help explain the decline of the Roman Empire? Write the following as an inequality: y is no greater than 4 but more than 2. Which of the following expressions shows how to rewrite 8 9 using the additive inverse and displays the expression correctly on a number line? A number line from negative 10 to positive 10 is shown, with numbers labeled at intervals of 1. An arrow is shown from point 0 to 8. Another arrow points from 8 to negative 1. A number line from negative 10 to positive 10 is shown, with numbers labeled at intervals of 1. An arrow is shown from point 0 to 8. Another arrow points from 8 to 9. A number line from negative 10 to positive 10 is shown, with numbers labeled at intervals of 1. An arrow is shown from point 0 to 8. Another arrow points from 8 to negative 9. A number line from negative 10 to positive 10 is shown, with numbers labeled at intervals of 1. An arrow is shown from point 0 to 8. Another arrow points from 8 to 1. 2-last year, the weather this summer is warmer and drier.a. In comparison with b. However c. Instead of d. whereas You saw a fight between two of your class mates and your class teacher has asked to give an account of the fight "A customer places an order to buy 100 shares of ABC at the market. The broker enters the order and receives a report of execution shortly thereafter. Ten minutes later, the customer telephones, and states that he placed the order in error and wishes to cancel the order. The appropriate procedure is to:" write the equation of a horizontal ellipse with a major axis of 30, a minor axis of 14, and a center at (-9,-7).