Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#151 Re: Help Me ! » How many integers between 1 and 999 have 3 divisors? » 2025-01-21 01:22:28

Now it's out of my mind.
Do you study about computer science?

#152 Re: Help Me ! » How many integers between 1 and 999 have 3 divisors? » 2025-01-21 01:04:32

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. smile

#153 Re: Help Me ! » How many integers between 1 and 999 have 3 divisors? » 2025-01-20 22:31:30

phrontister wrote:

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.

smile

Hi
By the way, which language did you use in that program? It looks like python, is it?

#154 Re: Help Me ! » How many integers between 1 and 999 have 3 divisors? » 2025-01-20 22:27:30

Oh,
I misunderstood the question!
I thout we had to count the numbers having atleast 3  divisors.
Sorry for that. sad

#155 Re: Help Me ! » How many integers between 1 and 999 have 3 divisors? » 2025-01-20 13:06:46

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. smile

#156 Re: Help Me ! » How many integers between 1 and 999 have 3 divisors? » 2025-01-20 02:07:29

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. smile

#157 Re: Maths Is Fun - Suggestions and Comments » Our New Forum » 2025-01-20 01:02:30

Ya I know how it feels if you work hard for sth and someone says bad about it. Sorry for that.

#158 Re: Maths Is Fun - Suggestions and Comments » Our New Forum » 2025-01-19 23:20:45

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.

#160 Re: Maths Is Fun - Suggestions and Comments » Avatar » 2024-12-15 23:21:58

Yes
You are right!
It happens to me too.

#161 Re: Maths Is Fun - Suggestions and Comments » Avatar » 2024-12-15 22:17:22

I tried that link and it said, "You are not allowed to access this page."

#162 Re: Maths Is Fun - Suggestions and Comments » Avatar » 2024-12-15 22:15:39

Hi,
No. I tried already and it didn't work.

#163 Re: Coder's Corner » Windows or Linux? » 2024-12-14 18:46:27

I 1 2 use it for coding. That's actually a bad decision in case of that laptop. sad

#164 Re: Coder's Corner » Windows or Linux? » 2024-12-13 21:58:18

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.

#165 Re: Coder's Corner » Windows or Linux? » 2024-12-13 15:08:25

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.

#166 Re: Introductions » New Grade 12 Math Student Here » 2024-10-20 21:40:32

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. smile

#167 Re: Introductions » A solo scientist new to the forum » 2024-10-20 12:45:58

I don't know what it means but you can ask.
I'll try to answer on my own. smile

#168 Maths Is Fun - Suggestions and Comments » Avatar » 2024-10-20 00:56:41

ktesla39
Replies: 8

Why am I unable to upload an avatar?

#171 Re: Help Me ! » Coordinate Geometry question » 2024-10-20 00:41:40

Sorry but it asked for equation but you calculated distance.

#172 Re: Introductions » New Grade 12 Math Student Here » 2024-10-20 00:39:30

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.

#173 Re: This is Cool » Plasma » 2024-10-20 00:27:05

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. wink

#174 Help Me ! » Coordinate Geometry question » 2024-10-20 00:15:09

ktesla39
Replies: 4

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. smile

#175 Re: Introductions » A solo scientist new to the forum » 2024-10-20 00:03:24

Ok
I code when I feel bored. Bored from life. wink
Will you ask me few questions from your physics book? Easy ones ok. smile

Board footer

Powered by FluxBB