How to find out whether a number is prime or not using for loop?

17 Ansichten (letzte 30 Tage)
Muhammad Bilal
Muhammad Bilal am 6 Okt. 2020
Beantwortet: KSSV am 6 Okt. 2020
how to find out whether a given number is prime or not using for loop in matlab?

Antworten (2)

Ameer Hamza
Ameer Hamza am 6 Okt. 2020
Since this is a homework problem, I cannot directly give you a solution, but there are plenty of available resources, even related to MATLAB. The following links will be helpful. You can study the algorithm, their code, and then write your own code for assignment.

KSSV
KSSV am 6 Okt. 2020
You gogole it..you will get many links.This question ahs been asked multiple times.

Kategorien

Mehr zu Performance and Memory finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by