SlideShare a Scribd company logo
1 of 1
Download to read offline
Add the function to a PyDev module named functions. py. Test it from t2.py. A prime number is a
positive integer greater than 1 which has no other factors except 1 and the number itself. 2, 3, 5,
and 7 are prime numbers as they can only be divided by 1 and by themselves to give a whole
number. 4 is not a prime because, 4 can be divided by 1,2 and 4 . The function does not ask for
input and does no printing - that is done by your test program. The function must use a while loop.
Sample execution: is_prime_number (131) True Test the function with three different sets of
parameters. Partial testing: Test functions.py:

More Related Content

More from adityablinds

According to separate analyses by the Organization for Econo.pdf
According to separate analyses by the Organization for Econo.pdfAccording to separate analyses by the Organization for Econo.pdf
According to separate analyses by the Organization for Econo.pdfadityablinds
 
After evaluating Michikas performance and leadership potent.pdf
After evaluating Michikas performance and leadership potent.pdfAfter evaluating Michikas performance and leadership potent.pdf
After evaluating Michikas performance and leadership potent.pdfadityablinds
 
After an exciting day runningyou sit down and eat a sandwich.pdf
After an exciting day runningyou sit down and eat a sandwich.pdfAfter an exciting day runningyou sit down and eat a sandwich.pdf
After an exciting day runningyou sit down and eat a sandwich.pdfadityablinds
 
After a mayor announced his plans to cut budget costs in lat.pdf
After a mayor announced his plans to cut budget costs in lat.pdfAfter a mayor announced his plans to cut budget costs in lat.pdf
After a mayor announced his plans to cut budget costs in lat.pdfadityablinds
 
Aeromonas hydrophilia Where is it found in the environment.pdf
Aeromonas hydrophilia Where is it found in the environment.pdfAeromonas hydrophilia Where is it found in the environment.pdf
Aeromonas hydrophilia Where is it found in the environment.pdfadityablinds
 
Advanced practice providers NPs and PAs are expected to .pdf
Advanced practice providers NPs and PAs are expected to .pdfAdvanced practice providers NPs and PAs are expected to .pdf
Advanced practice providers NPs and PAs are expected to .pdfadityablinds
 
Adolph Berle ve Gardiner Means geni apta sahip olunan irke.pdf
Adolph Berle ve Gardiner Means geni apta sahip olunan irke.pdfAdolph Berle ve Gardiner Means geni apta sahip olunan irke.pdf
Adolph Berle ve Gardiner Means geni apta sahip olunan irke.pdfadityablinds
 
Advantages of webbased surveys include all but Maintai.pdf
Advantages of webbased surveys include all but     Maintai.pdfAdvantages of webbased surveys include all but     Maintai.pdf
Advantages of webbased surveys include all but Maintai.pdfadityablinds
 
Adjust the method loadApproved in class VaxProgram so that i.pdf
Adjust the method loadApproved in class VaxProgram so that i.pdfAdjust the method loadApproved in class VaxProgram so that i.pdf
Adjust the method loadApproved in class VaxProgram so that i.pdfadityablinds
 
Administracin de Empresas No es el tpico CEO De hecho a.pdf
Administracin de Empresas  No es el tpico CEO De hecho a.pdfAdministracin de Empresas  No es el tpico CEO De hecho a.pdf
Administracin de Empresas No es el tpico CEO De hecho a.pdfadityablinds
 
According to Hudson and Booth Information Management IM i.pdf
According to Hudson and Booth Information Management IM i.pdfAccording to Hudson and Booth Information Management IM i.pdf
According to Hudson and Booth Information Management IM i.pdfadityablinds
 
Adenilil siklaz inaktif olacak ekilde bir hcre mutasyona ur.pdf
Adenilil siklaz inaktif olacak ekilde bir hcre mutasyona ur.pdfAdenilil siklaz inaktif olacak ekilde bir hcre mutasyona ur.pdf
Adenilil siklaz inaktif olacak ekilde bir hcre mutasyona ur.pdfadityablinds
 
According to the PCAOB General Auditing standards an ordina.pdf
According to the PCAOB General Auditing standards an ordina.pdfAccording to the PCAOB General Auditing standards an ordina.pdf
According to the PCAOB General Auditing standards an ordina.pdfadityablinds
 
Address the following 1 Cybercrime or cyberwrongs Is ther.pdf
Address the following 1 Cybercrime or cyberwrongs Is ther.pdfAddress the following 1 Cybercrime or cyberwrongs Is ther.pdf
Address the following 1 Cybercrime or cyberwrongs Is ther.pdfadityablinds
 
Add the rest of the calculations to the codeThe operations .pdf
Add the rest of the calculations to the codeThe operations .pdfAdd the rest of the calculations to the codeThe operations .pdf
Add the rest of the calculations to the codeThe operations .pdfadityablinds
 
Add five integers Due Mar 8 by 11am Points 10 Submitting a f.pdf
Add five integers Due Mar 8 by 11am Points 10 Submitting a f.pdfAdd five integers Due Mar 8 by 11am Points 10 Submitting a f.pdf
Add five integers Due Mar 8 by 11am Points 10 Submitting a f.pdfadityablinds
 
Adaptive defences Cellmediated immunity cellular immunity.pdf
Adaptive defences Cellmediated immunity cellular immunity.pdfAdaptive defences Cellmediated immunity cellular immunity.pdf
Adaptive defences Cellmediated immunity cellular immunity.pdfadityablinds
 
Adamantine Architectonics Adamantine Architectonics consist.pdf
Adamantine Architectonics Adamantine Architectonics consist.pdfAdamantine Architectonics Adamantine Architectonics consist.pdf
Adamantine Architectonics Adamantine Architectonics consist.pdfadityablinds
 
Actromosome with gonetic markers A B C D E and F rep.pdf
Actromosome with gonetic markers A B C D E and F  rep.pdfActromosome with gonetic markers A B C D E and F  rep.pdf
Actromosome with gonetic markers A B C D E and F rep.pdfadityablinds
 
According to Hudson which of the following is statements is.pdf
According to Hudson which of the following is statements is.pdfAccording to Hudson which of the following is statements is.pdf
According to Hudson which of the following is statements is.pdfadityablinds
 

More from adityablinds (20)

According to separate analyses by the Organization for Econo.pdf
According to separate analyses by the Organization for Econo.pdfAccording to separate analyses by the Organization for Econo.pdf
According to separate analyses by the Organization for Econo.pdf
 
After evaluating Michikas performance and leadership potent.pdf
After evaluating Michikas performance and leadership potent.pdfAfter evaluating Michikas performance and leadership potent.pdf
After evaluating Michikas performance and leadership potent.pdf
 
After an exciting day runningyou sit down and eat a sandwich.pdf
After an exciting day runningyou sit down and eat a sandwich.pdfAfter an exciting day runningyou sit down and eat a sandwich.pdf
After an exciting day runningyou sit down and eat a sandwich.pdf
 
After a mayor announced his plans to cut budget costs in lat.pdf
After a mayor announced his plans to cut budget costs in lat.pdfAfter a mayor announced his plans to cut budget costs in lat.pdf
After a mayor announced his plans to cut budget costs in lat.pdf
 
Aeromonas hydrophilia Where is it found in the environment.pdf
Aeromonas hydrophilia Where is it found in the environment.pdfAeromonas hydrophilia Where is it found in the environment.pdf
Aeromonas hydrophilia Where is it found in the environment.pdf
 
Advanced practice providers NPs and PAs are expected to .pdf
Advanced practice providers NPs and PAs are expected to .pdfAdvanced practice providers NPs and PAs are expected to .pdf
Advanced practice providers NPs and PAs are expected to .pdf
 
Adolph Berle ve Gardiner Means geni apta sahip olunan irke.pdf
Adolph Berle ve Gardiner Means geni apta sahip olunan irke.pdfAdolph Berle ve Gardiner Means geni apta sahip olunan irke.pdf
Adolph Berle ve Gardiner Means geni apta sahip olunan irke.pdf
 
Advantages of webbased surveys include all but Maintai.pdf
Advantages of webbased surveys include all but     Maintai.pdfAdvantages of webbased surveys include all but     Maintai.pdf
Advantages of webbased surveys include all but Maintai.pdf
 
Adjust the method loadApproved in class VaxProgram so that i.pdf
Adjust the method loadApproved in class VaxProgram so that i.pdfAdjust the method loadApproved in class VaxProgram so that i.pdf
Adjust the method loadApproved in class VaxProgram so that i.pdf
 
Administracin de Empresas No es el tpico CEO De hecho a.pdf
Administracin de Empresas  No es el tpico CEO De hecho a.pdfAdministracin de Empresas  No es el tpico CEO De hecho a.pdf
Administracin de Empresas No es el tpico CEO De hecho a.pdf
 
According to Hudson and Booth Information Management IM i.pdf
According to Hudson and Booth Information Management IM i.pdfAccording to Hudson and Booth Information Management IM i.pdf
According to Hudson and Booth Information Management IM i.pdf
 
Adenilil siklaz inaktif olacak ekilde bir hcre mutasyona ur.pdf
Adenilil siklaz inaktif olacak ekilde bir hcre mutasyona ur.pdfAdenilil siklaz inaktif olacak ekilde bir hcre mutasyona ur.pdf
Adenilil siklaz inaktif olacak ekilde bir hcre mutasyona ur.pdf
 
According to the PCAOB General Auditing standards an ordina.pdf
According to the PCAOB General Auditing standards an ordina.pdfAccording to the PCAOB General Auditing standards an ordina.pdf
According to the PCAOB General Auditing standards an ordina.pdf
 
Address the following 1 Cybercrime or cyberwrongs Is ther.pdf
Address the following 1 Cybercrime or cyberwrongs Is ther.pdfAddress the following 1 Cybercrime or cyberwrongs Is ther.pdf
Address the following 1 Cybercrime or cyberwrongs Is ther.pdf
 
Add the rest of the calculations to the codeThe operations .pdf
Add the rest of the calculations to the codeThe operations .pdfAdd the rest of the calculations to the codeThe operations .pdf
Add the rest of the calculations to the codeThe operations .pdf
 
Add five integers Due Mar 8 by 11am Points 10 Submitting a f.pdf
Add five integers Due Mar 8 by 11am Points 10 Submitting a f.pdfAdd five integers Due Mar 8 by 11am Points 10 Submitting a f.pdf
Add five integers Due Mar 8 by 11am Points 10 Submitting a f.pdf
 
Adaptive defences Cellmediated immunity cellular immunity.pdf
Adaptive defences Cellmediated immunity cellular immunity.pdfAdaptive defences Cellmediated immunity cellular immunity.pdf
Adaptive defences Cellmediated immunity cellular immunity.pdf
 
Adamantine Architectonics Adamantine Architectonics consist.pdf
Adamantine Architectonics Adamantine Architectonics consist.pdfAdamantine Architectonics Adamantine Architectonics consist.pdf
Adamantine Architectonics Adamantine Architectonics consist.pdf
 
Actromosome with gonetic markers A B C D E and F rep.pdf
Actromosome with gonetic markers A B C D E and F  rep.pdfActromosome with gonetic markers A B C D E and F  rep.pdf
Actromosome with gonetic markers A B C D E and F rep.pdf
 
According to Hudson which of the following is statements is.pdf
According to Hudson which of the following is statements is.pdfAccording to Hudson which of the following is statements is.pdf
According to Hudson which of the following is statements is.pdf
 

Recently uploaded

Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 

Recently uploaded (20)

Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 

Add the function to a PyDev module named functions py Test.pdf

  • 1. Add the function to a PyDev module named functions. py. Test it from t2.py. A prime number is a positive integer greater than 1 which has no other factors except 1 and the number itself. 2, 3, 5, and 7 are prime numbers as they can only be divided by 1 and by themselves to give a whole number. 4 is not a prime because, 4 can be divided by 1,2 and 4 . The function does not ask for input and does no printing - that is done by your test program. The function must use a while loop. Sample execution: is_prime_number (131) True Test the function with three different sets of parameters. Partial testing: Test functions.py: