You are not logged in.
Now it's out of my mind.
Do you study about computer science?
Oh
I never used big bracs in any code. That's why I was asking. My JS code was:
<script>
m = 1
count = 0
for (i=0;i<1000;i++) {
for (n=0;n<i;n++) {
if (i % n == 0) m += 1;
if (n == i && m==3) {
count += 1;
document.write(i +"<br>")
}
}
}
document.write("The numbers with 3 divisors are mentioned above<br> There are " +count +"numbers from 1 to 1000 having 3 divisors")
</script>
I guess this might work. This code is in JS and also needs HTML to be set up. ![]()
Hi ktesla39,
I'll try python or JS automation to solve the question by dividing all integers from 1-999.
Good idea...I tried it with Mathematica, and here's my code and solution:
It tested all integers in that range, and for each integer that had only 3 divisors it printed the solution number, the integer number, and the divisors. When done, it gave the total number of solutions.
Hi
By the way, which language did you use in that program? It looks like python, is it?
Oh,
I misunderstood the question!
I thout we had to count the numbers having atleast 3 divisors.
Sorry for that. ![]()
Okay
I'll try python or JS automation to solve the question by dividing all integers from 1-999.
Bye for now as I'm going to join my classes. ![]()
Hi Bob,
Using a method similar to Bob's:
#Each number will have at least 2 divisors except th no. 1
#There are 999 numbers.
#If we count from 4 as 1,2,3 are exceptions (being first 3 nos), there will be total 999-4+1=996 numbers.
# Out of 996, 1/2 will be even. So there are 492 even nos.
# Even numbers have at least 3 divisors {1,2…the no.}. So 492 nos have 3 divisors. Point no. 1
#Remaining 492 nos are odd. Some of them are primes. Count the number of primes except 1,2,3 and subtract the number from 492 as non primes will have any divisors other than 1,2.
#Add the result in 492 and you might get an approx answer.
Or,
You can directly subtract the number of primes from 996. I guess it might provide similar result.
This might work. ![]()
Ya I know how it feels if you work hard for sth and someone says bad about it. Sorry for that.
I know how hard it is to make any website like this one.
I didn't mean that this site is useless or anything like that. It's actually good site but people don't use this site the way it should have been used. This is very useful site but students nowadays follow AI tools like chatgpt instead of forums like this. I just meant that this site isnt been used actively as it was used in past. I'm sorry if you felt bad.
This site is very old ![]()
Yes
You are right!
It happens to me too.
I tried that link and it said, "You are not allowed to access this page."
Hi,
No. I tried already and it didn't work.
I 1 2 use it for coding. That's actually a bad decision in case of that laptop. ![]()
I have a low end laptop. So I'll go for lubuntu. I'll make my pendrive with 8 GB storage bootable for lubuntu tomorrow at my school.
Well first I used win 7. Then wanted to access more features so installed win 8.1 on my laptop (with 2 GB RAM). It was very bloated. So thought of using Linux. I wanted to try linux mint but I didn't know whether it would work or not. So I asked my AI about linux distros and got to know about antix linux. It operated on 512 MB RAM.
Maybe the program has some errors with multipart formdata. That's what I use to upload files specially images to my server.
I'll try mailing him asking about the source code or any bug. ![]()
I don't know what it means but you can ask.
I'll try to answer on my own. ![]()
Why am I unable to upload an avatar?
Where can I find him?
Ok
Thank you very much ![]()
Sorry but it asked for equation but you calculated distance.
Ok
I recently joined and before this, I used another forum at Braingle. Thre the owner used HTML tags for enhancing the text or message like <a> for link, <b> for bold etc etc and as I knew programming, I wrote those tags directly. That site was also based on PHP and JS.
I found that the version of PHP you are using is quite old. I tried to get the code of FluxBB on Github but it didnt work in my laptop. It said, "These array types are not valid in this version of PHP.
I know about it.
I tried to study about 22 states of matter 2 years ago and found Plasma at 4 th state and Quark Gluon Plasma at 22 th state.
My favourite way of watching plasma are large thunder or lightning or Tesla coils. I like plasma.
I got to know that physicists use plasma in fusion reactors. That's cool or too hot. ![]()
Find the equation of locus of point which moves on the line joining the points (2,4) and (5,9).
Full solution with process please. ![]()
Ok
I code when I feel bored. Bored from life.
Will you ask me few questions from your physics book? Easy ones ok. ![]()