🍥N00d1e5🍜
I remember... json is only for encode/decode, and then save with classic way.
🍥N00d1e5🍜
Thanks @Occupato :)
Anonymous
What's a prime number?
aai,,we..A number that is divisible only by itself
Anonymous
What's a prime number?
a number that is divisible only by itself and 1
Mat
aai,,we..A number that is divisible only by itself
So you have that the control of numbers after the square root of the actual number is useless
いろは
If a number is divisible by a number, one of the denominator and quotient must be less than its square root
いろは
Wooow,Thanks\
no problem
Dima
Please help
Means you are silly
Anonymous
Mat
Wooow,Thanks\
You'll never discover anything new going far than the square of that number because either you have already considered it or you'll not discover anything new 100, sqrt(100) = 10 ~> 1,2,5,10,20,50,100 are factors of 100. But if you study them you discover that if you study only the ones before 10 you get them all: 1 will give you 100 (100/1 = 100), while 2 will give 50 (100/2 = 50), too, etc etc
Dharambir
/this is the code of python
Mat
Give me one reason to not warn you
Dima
Give me no reason:
Dima
/warn @dharambirpoddar Unrelated, read the rules
Dharambir
Dharambir
Dima
Dima
/warn Read the rules, again!
Dima
Noobs
Ghost🔥
#include <math.h> main() { int i, j; printf("%d\n", 2); for(i = 3; i <= 100; i = i + 1) { for(j = 2; j < i; j = j + 1) { if(i % j == 0) break; if(j > sqrt(i)) { printf("%d > %f & i=%d\n",j,sqrt(i),i); break; } } } return 0; } Who is able to explain why use squareroot tos test for the loop ?
Ok so normally you would try dividing a number by numbers from 2 to half of that number in order to check if it's prime, but the problem is with a very large number that becomes time consuming, so we just divide a number by numbers from two to the square root of that specific number to check if it is prime inorder to save ourselves some time.. although u should know the second method isn't so accurate..
Ghost🔥
Hi guys, I would like to know if there is any library/package/method for export and import a value please? For example: int a = 666; export(a, file_name); next time when I want to use the value: int a = import(file_name);
You can just create your own it's not difficult.. just create a function that reads and stores the value that's inside a file in a variable then return the variable.. and for export just store the variable in a file
Anonymous
How to connect c++ program with database
araragi
#ot
Mudit
Yes
Anonymous
Is this class is correct?? I'm beginner to this language,idk this class hri correct anyone can help me
Anonymous
😟
Artöm
C# I guess
Anonymous
Ah yes sry I think someone know this language sry
Anonymous
C# I guess
Yeah c#
Artöm
Ah yes sry I think someone know this language sry
Maybe, but this place is strictly C++
Timothy
Hi all, I have a project that I'd like to cross compile to ARM to get it working on Raspberry Pi. It is currently working on Linux x86, using CMake and CLion. What is the best/most reliable way to accomplish this?
A
Hi
James🤍
Who is able to code front end using c++
Ikhlas
Hi
Mдtt
Hi! I wrote a program in C who has to execute SHA-1 hashing algorithm I followed the pseudo-code on Wikipedia and done all the steps but it returns to me a different Digest not the expected one, can somebody help me to have a look at my code and tell me in which step where I get wrong, any suggestions are welcome, Thank you! Here the code https://github.com/Gasu16/SHA1-ONLY And here the page where explains the pseudo-code: https://en.wikipedia.org/wiki/SHA-1#SHA-1_pseudocode
Anonymous
Hi thank u
Anonymous
Hi guys
Anonymous
[root@node11 nginx-1.16.1]# make dist make: *** No rule to make target `dist'. Stop. [root@node11 nginx-1.16.1]#
Anonymous
How to write make dist rules? anybody knows?
correctmaninwrongplace
does your makefile have the dist rule written?
correctmaninwrongplace
if you havent write any makefile yet, u can search for tutorials on how to write them
Anonymous
ok ,i understand , dist file should be a subset in the makefile
Anonymous
thank you
n1coc4cola
Elnee
does any one knw how to read and write to a usb com port using c++
Like to normal comport. Using Qt you can do it via QComPort
Ghost🔥
Who is able to code front end using c++
Yap but vc++ though.. but back end still pure c++ though😊
Anonymous
Yap but vc++ though.. but back end still pure c++ though😊
Are you a god to use VC++ for frontend lol?
Ghost🔥
Nop but I've been doing it 4 a while I've never encountered something that hasn't worked for me and it works just fine.. made alot of applications with it but the only problem is there's not much documentation..
Anonymous
https://www.instagram.com/p/B2Dt10zg6_z/?igshid=6kfys9xtikko
Anonymous
Like it and win amazon alexa tshirt
Anonymous
Oh lol
Sid Sun
LMAO
Ankit
Hllo
Anonymous
Please who can give me a code that draws a sphere in opengl
Anonymous
Or a tutorial
Anonymous
I can't find any good tutorials
Francisco
Please who can give me a code that draws a sphere in opengl
A sphere is not that simple, as you need to know about generation by rotation
Anonymous
Really?
I_Interface
Really?
Really 😂
Genos
Really?
Apparently he's blind
Harshendu
Hi
Anonymous
Can anyone tell me how to iterate through a map using auto in reverse order without any pain?
Anonymous
@MissRose_bot thanks Rose for the guildline
Anonymous
Hi