1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Tanya [424]
3 years ago
13

A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. Write a function named

is_prime that takes an integer argument and returns True if the number is prime and False otherwise. (Assume that the argument is an integer greater than 1, i.e. no need to check for erroneous input.)
Engineering
1 answer:
Ugo [173]3 years ago
8 0

Answer:

This is a function written in Python Programming Language to check whether a given number is prime or not.

def is_prime(n):

   if (n==1):

       return False

   elif (n==2):

       return True;

   else:

       for x in range(2,n):

           if(n % x==0):

               return False

       return True              

print(is_prime(9))

Explanation:

<h2 />
You might be interested in
Take water density and kinematic viscosity as p=1000 kg/m3 and v= 1x10^-6 m^2/s. (c) Water flows through an orifice plate with a
guapka [62]

Answer:

K_v=12.34

Explanation:

Given;

For orifice, loss coefficient, K₀ = 10

Diameter, D₀ = 45 mm = 0.045 m

loss coefficient of the orifice, Ko = 10

Diameter of the gate valve, Dy = 1.5D₀ = 1.5 × 0.045 m = 0.0675 m

Total head drop, Δhtotal=25 m

Discharge, Q = 10 l/s = 0.01 m³/s

Now,

the velocity of flow through orifice, Vo =   Discharge / area of the orifice

or

Vo = \frac{0.01}{\frac{\pi}{4}0.045^2}

or

Vo = 6.28 m/s

also,

the velocity of flow through gate valve, V_v =   Discharge / area of the orifice

or

V_v = \frac{0.01}{\frac{\pi}{4}0.0675^2}

or

V_v = 2.79 m/s

Now,

the total head drop = head drop at orifice + head drop at gate valve

or

25 m = K_o\frac{V_o^2}{2g}+K_v\frac{V_v^2}{2g}

where,

K_v is the loss coefficient for the gate valve

on substituting the values, we get

25 m = 10\frac{6.28^2}{2\times 9.81}+K_v\frac{2.79^2}{2\times9.81}

or

K_v\frac{2.79^2}{2\times9.81} = 4.898

or

K_v=12.34

3 0
4 years ago
What process is used to remove collodal and dissolved organic matter in waste water ​
Juli2301 [7.4K]

Answer:

Aerobic biological treatment process

Explanation:

Aerobic biological treatment process in which micro-organisms, in the presence of oxygen, metabolize organic waste matter in the water, thereby producing more micro-organisms and inorganic waste matter like CO₂, NH₃ and H₂O.

3 0
3 years ago
Two soils are fully saturated with liquid (no gas present) and the soils have the same void ratio. One soil is saturated with wa
mariarad [96]

Answer:

water sample have more water content

Explanation:

given data

soil 1 is saturated with  water

unit weight of water = 1 g/cm³

soil 2 is saturated with alcohol

unit weight of alcohol  = 0.8 g/cm³

solution

we get here water content that is express as

water content = S_s \times \gamma _w   ....................1

here soil is full saturated so S_s is 100% in both case

so put here value for water

water content = 100 % ×  1

water content = 1 g

and

now we get for alcohol that is

water content  = 100 % × 0.8

water content  = 0.8 g

so here water sample have more water content

5 0
4 years ago
Which of the following can not be used to store an electrical charge?
Nataly_w [17]
I’ve been feeeling very lonely
3 0
3 years ago
A helicopter moves horizontally in the x direction at a speed of 120 mi/h. Knowing that the main blades rotate clockwise when vi
devlian [24]

Answer:

The instantaneous axis of rotation=

x = 0 ; z = 8.4 ft

Explanation:

Given:

Speed of helicopter, Vo= 120 mi/h, converting to ft/sec, we have:

\frac{5280 * 120}{60*60}

= 176 ft/s

Angular velociyy, w = 220 rpm, converting to rad/sec, we have: \frac{200*2*pi}{60} =20.95 rad/s

The helicopter moves horizontally in the x direction at a speed of 120 mi/h, this means that the helicopter moves in the positive x direction at 120mi/h

To find the instantaneous axis of rotation of the main blades, we have:

Where Vc = 20.95 rad/s

Vo = 176 ft/s

z = \frac{V_0}{V_c} = \frac{176ft/s}{20.95rad/s}

= 8.4 ft

Therefore the axis of rotation=

x = 0 ; z = 8.4 ft

4 0
3 years ago
Other questions:
  • Find the phasor form of:
    5·1 answer
  • For a flow in the xy plane, the x component of velocity is given by u = Ax2y2, where A = 0.4 m-3 · s-1, and x and y are measured
    11·1 answer
  • A stem and leaf display
    12·1 answer
  • When a motorist passes a bicyclist, what is the minimum legal distance (clearance) to leave between vehicle and bike? *
    9·1 answer
  • Represent each of the following units as a combination of primitive
    11·1 answer
  • H2O enters a conical nozzle, operates at a steady state, at 2 MPa, 300 oC, with the inlet velocity 30 m/s and the mass flow rate
    15·1 answer
  • 2. How many amperes of current will flow through a circuit that has 3 ohms of resistance if
    5·1 answer
  • Can space debris take out a whole state
    9·1 answer
  • Q5) Write C++ program to find the summation of sines of the even values that can be divided by 7 between -170 and -137.
    11·1 answer
  • Select the best answer for the question
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!