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

You are not logged in.

## #151 2013-04-10 05:59:14

Agnishom
Real Member

Online

### Re: Mathematics jokes

Ya because at last we can check whether it has the required number of primes or not. And moreover, the number of primes can be less but NEVER more because if it says that a number is composite it definately is

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

## #152 2013-04-10 06:02:44

bobbym
Administrator

Online

### Re: Mathematics jokes

Okay, so we have sped it up already because you are no longer using trial division, which is slow.

Let's talk about the list itself. 455 million primes is a very, very big list. There is no list like that on the internet and for good reason. It is going to be a gigabyte or more.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

## #153 2013-04-10 06:04:37

Agnishom
Real Member

Online

### Re: Mathematics jokes

Okay! A gigabite?

That's quite huge

Last edited by Agnishom (2013-04-10 06:05:04)

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

## #154 2013-04-10 06:07:00

bobbym
Administrator

Online

### Re: Mathematics jokes

Each prime you will probably store in ascii. An n digit number takes at least n bytes of storage on your drive.

Do you keep the file open and then write all the primes and then close it?

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

## #155 2013-04-10 06:07:51

Agnishom
Real Member

Online

### Re: Mathematics jokes

Yes, actually closing it isn't a part of the code

Last edited by Agnishom (2013-04-10 06:08:24)

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

## #156 2013-04-10 06:11:11

bobbym
Administrator

Online

### Re: Mathematics jokes

So there is one opening of the file and one closing?

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

## #157 2013-04-10 06:12:30

Agnishom
Real Member

Online

### Re: Mathematics jokes

Yes, so what?

I was talking with 65 and I'm already too late to sleep today.

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

## #158 2013-04-10 06:15:16

bobbym
Administrator

Online

### Re: Mathematics jokes

Okay, that is alright then. If you opened and closed it after writing each number n, it would be much slower.

Now you say that it took all night to generate 1 million primes.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

## #159 2013-04-10 06:19:26

Agnishom
Real Member

Online

### Re: Mathematics jokes

LOL, good night

Its 10 million

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

## #160 2013-04-10 06:24:51

bobbym
Administrator

Online

### Re: Mathematics jokes

When you come back tell me how long the program took without writing to the file.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

## #161 2013-04-10 14:03:25

Agnishom
Real Member

Online

### Re: Mathematics jokes

I am back but I didn't understand what you asked

Last edited by Agnishom (2013-04-10 14:06:53)

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

## #162 2013-04-10 14:13:19

bobbym
Administrator

Online

### Re: Mathematics jokes

If you took out the writing to the file and just generated the 10 million how long would that take?

It could be that writing to a file is what is taking all the time. If you think 10 million is still too much then tell me how long it takes for 1 million without the file operations.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

## #163 2013-04-10 14:39:40

Agnishom
Real Member

Online

### Re: Mathematics jokes

Then where will the generated primes go?

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

## #164 2013-04-10 17:12:00

bobbym
Administrator

Online

### Re: Mathematics jokes

Nowhere, you are just benchmarking the program to see which part of the routine is using the most time.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

## #165 2013-04-10 18:30:53

Agnishom
Real Member

Online

### Re: Mathematics jokes

i have forgotten to mention something else which is slowing me down

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

## #166 2013-04-10 18:34:59

bobbym
Administrator

Online

### Re: Mathematics jokes

Please mention it?!

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

## #167 2013-04-10 18:40:02

Agnishom
Real Member

Online

### Re: Mathematics jokes

I told it to display n to the console whenever it is a multiple of 1000, so as to know the progress

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

## #168 2013-04-10 18:46:39

bobbym
Administrator

Online

### Re: Mathematics jokes

Where are you now?

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

## #169 2013-04-10 18:50:48

Agnishom
Real Member

Online

### Re: Mathematics jokes

I terminated the program, I have no more interest -a 17 mb file is enough to split all 10 digit phone numbers.

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

## #170 2013-04-10 18:55:02

bobbym
Administrator

Online

### Re: Mathematics jokes

Okay, then the problem is solved. You are satisfied so I am too.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

## #171 2013-04-10 18:56:59

Agnishom
Real Member

Online

### Re: Mathematics jokes

Actually I am pretty much afraid of 1 gb file size

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

## #172 2013-04-10 19:02:25

bobbym
Administrator

Online

### Re: Mathematics jokes

You should be! You have had your first taste of computational number theory and saw the big problem.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

## #173 2013-04-10 19:24:17

Agnishom
Real Member

Online

### Re: Mathematics jokes

What does computational number theory consist of?

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

## #174 2013-04-10 19:24:58

bobbym
Administrator

Online

### Re: Mathematics jokes

You just did it.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

## #175 2013-04-10 19:29:01

Agnishom
Real Member

Online

### Re: Mathematics jokes

Hmm

I am surprised no one is happy to see that their phone number as a sum of two primes. Not even my dad.
My brother seems a 'little' happy though

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

## Board footer

Powered by FluxBB