Тёмный

Check If A Number Is Prime | C++ Example 

Portfolio Courses
Подписаться 215 тыс.
Просмотров 19 тыс.
50% 1

Check if a number is prime or not using C++. Source code: github.com/por.... Check out www.portfolioc... to build a portfolio that will impress employers!

Опубликовано:

 

22 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@patrickdo1904
@patrickdo1904 Месяц назад
Oh my Lord, thank you sooooo much for the video. So intuitive and straight forward.
@PortfolioCourses
@PortfolioCourses Месяц назад
You’re very welcome, I’m glad you found it straight forward! :-)
@kevinchacon3852
@kevinchacon3852 9 месяцев назад
What if you wanted your output to also show all non-price numbers their divisors? For example 6 so output would be “6 is not prime it’s divisors are (1 2 3)”
@therealgamer8150
@therealgamer8150 Год назад
Technically you only need to check if n is divisible by all the numbers between 1 and floor(sqrt(n)). And then even further, you only need to check the prime numbers in this range which can be a useful optimisation if you are calculating all the primes less than some value
@elonmusketeer139
@elonmusketeer139 Год назад
Hi, do you have any video that goes over system calls such as fork, exec, wait, and exit. More specifically, how to fork two child processes running the two programs generated in parallel? Thanks!
@PortfolioCourses
@PortfolioCourses Год назад
Not yet, but those are topics I absolutely want to cover. :-)
@saranathrajaram639
@saranathrajaram639 11 дней назад
what IDE you using?
@Yvaine.e
@Yvaine.e 7 месяцев назад
Tysm!
@soupman7545
@soupman7545 9 месяцев назад
thank you
@PortfolioCourses
@PortfolioCourses 9 месяцев назад
You’re welcome! :-)
@MUHAMMADAWAIS-qt1td
@MUHAMMADAWAIS-qt1td 6 месяцев назад
Can you name the compiler you are using ?
@PortfolioCourses
@PortfolioCourses 6 месяцев назад
The IDE is Xcode on MacOS, I believe it uses the Clang compilers. :-)
@MUHAMMADAWAIS-qt1td
@MUHAMMADAWAIS-qt1td 6 месяцев назад
@@PortfolioCourses Thanks :)
@youzztv1533
@youzztv1533 8 месяцев назад
Call i have all code
@hosams8083
@hosams8083 5 месяцев назад
thanks
Далее
Quicksort | C++ Example
26:50
Просмотров 7 тыс.
الذرة أنقذت حياتي🌽😱
00:27
Просмотров 14 млн
Simple Flower Syrup @SpicyMoustache
00:32
Просмотров 934 тыс.
How Square Roots Can Help You Check Prime Numbers
9:16
I compared the performance of 9 programming languages!
20:03
Check If A String Is A Palindrome | C++ Example
11:18
why are switch statements so HECKIN fast?
11:03
Просмотров 403 тыс.
Compiled Python is FAST
12:57
Просмотров 107 тыс.
Problem #38 Is Prime Number
12:00
Просмотров 54 тыс.
COMPUTER SCIENCE explained in 17 Minutes
16:49
Просмотров 890 тыс.
الذرة أنقذت حياتي🌽😱
00:27
Просмотров 14 млн