Prime numbers use internet resources to review the


Objectives

  • Research/review the concept of Prime Numbers
  • Execute a small MATLAB program.
  • Document your results

Prime Numbers

Use internet resources to review the definition of prime numbers. Write a mathematical formula for calculating a prime. Do not use the class PowerPoint charts as a source --- use external (web-based) information, citing your source(s).

Getting Started With MATLAB

At the MATLAB menu, enter File à New script, to type the commands below. Enter File à Save As to save this program. Give it a name like "checkprime" as illustated below. Make sure to file it in a directory in which you can find it later!

 

Execute the program, correcting any typos as necessary.

Take the time to learn to learn how the MATLAB code above actually works.

Use comments in your to illustrate your new-found knowledge. All text after the percent (%) sign on the same line is taken as comment --- MATLAB simply ignores anything to the right of this sign.

In addition, enter at least 5 numbers to check if they are prime, and document your results by copy-pasting your results into your Project Report (Word document).

Project Report

The final step of this assignment is to create a Project Report (Word document) in the format discussed in the CS122L Lab Submission Guidelines.

The Project Report should contain the following information:

Purpose
Describe the purpose of your program.

Approach
Describe your approach to completing this project.

Methods

Mathematical processes followed.

Implementation

Results and "m" file(s) of your code.

Conclusions

Describe any significant problems or challenges you encountered and how you solved them.

Submit your results (Project Report and ".m" file) in the correct place.

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: Prime numbers use internet resources to review the
Reference No:- TGS01155713

Expected delivery within 24 Hours