# Prime numbers and "prim" numbers

**URL:** <https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971>\
**Category:** Factual Questions\
**Created:** [January 19, 2012, 3:30am UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971 "2012-01-19T03:30:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enola\_Straight](https://avatars.discourse-cdn.com/v4/letter/e/dec6dc/32.png) [@Enola\_Straight](https://boards.straightdope.com/u/Enola_Straight)\
**Post date:** [January 19, 2012, 3:30am UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/1 "2012-01-19T03:30:36Z")

</div>

In this thread  
[http://boards.straightdope.com/sdmb/showthread.php?t=496985&highlight=prime](http://boards.straightdope.com/sdmb/showthread.php?t=496985&highlight=prime)  
I pointed out how all primes are either 6x=1 or 6x-1 (note: that is NOT a generator…some 6x+/-1 numbers are not prime ;))

This guy has expanded the concept with what he calls “prim” numbers:

[http://french.chass.utoronto.ca/as-sa/ASSA-14/article7en.html](http://french.chass.utoronto.ca/as-sa/ASSA-14/article7en.html)

1_2_3=6  
1_2_3_4=24  
1_2_3_4_5=120  
1_2_3_4_5_6=720  
1_2_3_4_5_6_7=5040

and primes lie on the prim +1 and prim-1 lines

[http://french.chass.utoronto.ca/as-sa/ASSA-14/modulus6-spiral90.jpg](http://french.chass.utoronto.ca/as-sa/ASSA-14/modulus6-spiral90.jpg)

Does his theory hold true?

---

<div class="post-metadata">

**Author:** ![Wendell\_Wagner](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@Wendell\_Wagner](https://boards.straightdope.com/u/Wendell_Wagner)\
**Post date:** [January 19, 2012, 3:56am UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/2 "2012-01-19T03:56:24Z")

</div>

First, note that the paper that you link to is not published in a mathematical journal at all. It’s published in a literary research journal called _Applied Semiotics_. Furthermore, note that the author of the article is also one of the two editors of the journal. Then look at the definition of “prim” that the article gives (or at least I think this is the definition):

\> These may be loosely understood as those composite integers having the  
\> highest number of distinct factorizations in their immediately neighborhood.

I think that that is too vague to be a useful definition. I suspect that there isn’t enough definite mathematical content in this article for us to be sure about what it’s talking about. But there’s something even weirder going on. The link you gave us supposedly is to the seventh article in the fourteenth issue of _Applied Semiotics_. But here is a link to the table of contents of the fourteenth issue of _Applied Semiotics_. Note that there are only six articles in the issue:

[http://french.chass.utoronto.ca/as-sa/ASSA-No14/index.html](http://french.chass.utoronto.ca/as-sa/ASSA-No14/index.html)

I think therefore that this is the co-editor of the journal screwing around with the website of the journal so that he can insert his own article about a subject that he knows little about.

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [January 19, 2012, 4:10am UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/3 "2012-01-19T04:10:23Z")

</div>

Thanks, **Wendell** ; it didn’t look like a standard mathematical article to me.

For one thing, I noticed this excerpt:

> [@](#):
>
> Thus it is not surprising that the most highly divisible integers, the multiples of 6 (which incidentally make up the Assyrian and Babylonian systems for measuring time and angles that we inherited in the West) are adjacent to each and every occurrence of prime numbers greater than three. Stated otherwise, all integers adjacent to prims like multiples of 6 have zero factors and are therefore prime, unless by mechanical ‘providence’ they themselves have a prime by which they are divisible.

Which, as far as I can tell  
(1) gives the same fact that the OP does, which, as the thread the OP linked to points out, is actually fairly obvious and non-profound  
(2) includes a parenthetical remark that doesn’t seem to have anything to do with the rest of the article, and  
(3) concludes that numbers adjacent to “prims” (like 6k-1 and 6k+1) are prime, except when they aren’t.

---

<div class="post-metadata">

**Author:** ![Exapno\_Mapcase](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/exapno_mapcase/32/1051_2.png) [@Exapno\_Mapcase](https://boards.straightdope.com/u/Exapno_Mapcase)\
**Post date:** [January 19, 2012, 4:17am UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/4 "2012-01-19T04:17:40Z")

</div>

An image search for [Ulam’s Spiral](https://www.google.com/search?q=ulam+spiral&num=100&hl=en&newwindow=1&safe=off&pwst=1&rlz=1B3GGLL_enUS395US396&prmd=imvns&tbm=isch&tbo=u&source=univ&sa=X&ei=aJcXT6LYB8bY0QHKi-H8Ag&ved=0CD8QsAQ&biw=1080&bih=1760) brings up a plethora of very cool images.

That’s a deep result. From my quick read, the article’s figure 4, his big reveal, is a trivial representation of the 6X+1, 6x-1 observation. It has to be true. You showed that yourself.

And his question, “Why is it that integers having a maximum number of factors are immediately adjacent to integers with a minimum of whole factors?” is answered by observing it’s another way of saying exactly the same thing.

I think. I can’t say I tried very hard to read sentences like "Clearly, if a prim number n[sub]prim[/sub] is divisible by an integer factor greater than one, f, then the next occurrence of an integer that is also evenly divisible by f occurs at n[sub]prim[/sub] +f. Similarly, the nearest integer inferior to n that is evenly divisible by f must prim occur at n[sub]prim[/sub] -f. " at this hour.

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [January 19, 2012, 4:29am UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/5 "2012-01-19T04:29:38Z")

</div>

> [@Exapno\_Mapcase](#):
>
> I think. I can’t say I tried very hard to read sentences like "Clearly, if a prim number n[sub]prim[/sub] is divisible by an integer factor greater than one, f, then the next occurrence of an integer that is also evenly divisible by f occurs at n[sub]prim[/sub] +f. Similarly, the nearest integer inferior to n that is evenly divisible by f must prim occur at n[sub]prim[/sub] -f. " at this hour.

That sentence makes sense to me, even though it’s not very profound. What it’s saying (IIUC) is that if a number (say, 432) is divisible by another number (say, 6), then you have to go up to 432+6 or down to 432-6 to find another nearby number that’s also divisible by 6.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [January 19, 2012, 4:35am UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/6 "2012-01-19T04:35:23Z")

</div>

> [@Thudlow\_Boink](#):
>
> That sentence makes sense to me, even though it’s not very profound.

It’s not just not profound; it’s so obvious that anyone who thinks it’s worth saying clearly doesn’t have any sense of what makes an interesting mathematical statement. That doesn’t exactly fill me with confidence regarding the article.

---

<div class="post-metadata">

**Author:** ![Enola\_Straight](https://avatars.discourse-cdn.com/v4/letter/e/dec6dc/32.png) [@Enola\_Straight](https://boards.straightdope.com/u/Enola_Straight)\
**Post date:** [January 19, 2012, 4:54am UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/7 "2012-01-19T04:54:11Z")

</div>

I figured, if these ever larger “prim” numbers do indeed weed out non-primes (note, I do not say _find_ primes) then could they not speed up the search for ever larger primes?

If (1_2_3_4)+/-1 weeds out non-primes …starting with 24… four times faster than  
(1_2_3)+/-1, and (1_2_3_4_5)+/-1 weeds out primes five times faster than (1_2_3_4)+/-1, wouldn’t this mean the speed in prime searching would increase geometrically?

Write a program capable of “switching gears” when a prim number is reached?

UNLESS…6x+/-1 catches primes larger prims miss…:dubious:

---

<div class="post-metadata">

**Author:** ![Enola\_Straight](https://avatars.discourse-cdn.com/v4/letter/e/dec6dc/32.png) [@Enola\_Straight](https://boards.straightdope.com/u/Enola_Straight)\
**Post date:** [January 19, 2012, 5:13am UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/8 "2012-01-19T05:13:40Z")

</div>

I just checked…24+/-1 indeed misses primes between 24 and 48.  
☹

---

<div class="post-metadata">

**Author:** ![Wendell\_Wagner](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@Wendell\_Wagner](https://boards.straightdope.com/u/Wendell_Wagner)\
**Post date:** [January 19, 2012, 10:36am UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/9 "2012-01-19T10:36:29Z")

</div>

Enola Straight, where did you even find out about Marteinson’s article? Apparently he’s been trying to persuade mathematicians to look at his ideas and has been getting shot down in every forum he tries:

> **[Do Infinitely Many Prime Pairs Exist?](https://www.physicsforums.com/threads/do-infinitely-many-prime-pairs-exist.66465/)**
>
> There is (as far as I know) no proof-for or against- that there are infinately many prime pairs such as 3, 5 or 29, 31...
> 
> Anyway, is it intuitive to assume that there should be infinitely many pairs just b/c of the fact that there are infinitely...

[http://bbs.slsee.com/viewthread.php?tid=61649](http://bbs.slsee.com/viewthread.php?tid=61649)

He apparently is a smart knowledgeable guy who’s convinced that he’s smarter and more knowledgeable than he actually is (a type that I’ve met before):

[http://french.chass.utoronto.ca/as-sa/editors/pgm.htm](http://french.chass.utoronto.ca/as-sa/editors/pgm.htm)

He’s been bouncing around in miscellaneous teaching jobs for a decade or two. He thinks it’s important to know that he can trace his ancestry back more than a thousand years in Iceland.

---

<div class="post-metadata">

**Author:** ![Great\_Antibob](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Great\_Antibob](https://boards.straightdope.com/u/Great_Antibob)\
**Post date:** [January 19, 2012, 3:34pm UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/10 "2012-01-19T15:34:35Z")

</div>

> [@Enola\_Straight](#):
>
> I just checked…24+/-1 indeed misses primes between 24 and 48.  
> ☹

Of course it misses primes.

In these cases, it helps to know WHY things work.

All primes (except for 2 and 3) are of the form “6k +/- 1” because 2 and 3 are prime (which is why they are the exception).

So, 6k, 6k+2 and 6k-2 are all divisible by 2. 6k+3 is divisible by 3. That only leaves 6k+1 and 6k-1, which are the only numbers that can be (but are not always) prime. If they are not prime, they are divisible by a prime larger than 3. For example, 25 is 6_4+1 and divisible by 5 (larger than 3). And 35 is 6_6 - 1 and divisible by 5 and 7 (both primes larger than 3).

If we extend this notion, we actually go up to 30k (not 24k) +/- various values, because the next largest prime after 2 and 3 is 5.

From that list, we can eliminate 30k+any even number (divisible by 2). Likewise, we can eliminate 30k+{3,9,15,21,27} because they are divisible by 3. Further, we can eliminate 30k+{5,25} because they are divisible by 5.

That leaves 30k+/-1, 30k+/-7, 30k+/-11, 30k+/-13.

So, all primes larger than 5 can be expressed in one of the forms {30k+/-1, 30k+/-7, 30k+/- 11, 30k+/-13}.

Notice that any of these primes can also be expressed in the form 6k+/- 1.

For example:

```
 30k+1 = 6*(5k) + 1 = 6*m + 1. 
 30k+7 = 6*(5k) + 6 + 1 = 6*(5k+1) + 1 = 6*n + 1
 30k + 11 = 6*(5k) + 12 - 1 = 6*(5k +2) - 1 = 6*p - 1
 30k + 13 = 6*(5k) + 12 + 1 = 6*(5k + 2) + 1 = 6*p + 1

```

I know that 8 possibilities is not as exciting or concise as 6k+/-1, but that’s where the math takes you.

Naturally, we can extend this further (the next step would be 210k+/- m), but it becomes a much less useful guide at that point.  
BTW: this is NOT a particularly good way of detecting primes. It’s a good way for detecting COMPOSITES. If you have a prime candidate, you still have to determine whether or not it is divisible by a smaller number. For example, if a number can be expressed as 6k+3, you automatically know it’s NOT prime. But if a number is of the form 6k+1, it might be prime or composite. You still have to do more checking to determine primality.

---

<div class="post-metadata">

**Author:** ![Tom\_Tildrum](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@Tom\_Tildrum](https://boards.straightdope.com/u/Tom_Tildrum)\
**Post date:** [January 19, 2012, 4:59pm UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/11 "2012-01-19T16:59:01Z")

</div>

> [@Enola\_Straight](#):
>
> 1_2_3=6  
> 1_2_3_4=24  
> 1_2_3_4_5=120  
> 1_2_3_4_5_6=720  
> 1_2_3_4_5_6_7=5040

Aren’t these factorials? I mean, doesn’t this group of numbers already have a name?

---

<div class="post-metadata">

**Author:** ![Exapno\_Mapcase](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/exapno_mapcase/32/1051_2.png) [@Exapno\_Mapcase](https://boards.straightdope.com/u/Exapno_Mapcase)\
**Post date:** [January 19, 2012, 5:04pm UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/12 "2012-01-19T17:04:52Z")

</div>

> [@Tom\_Tildrum](#):
>
> Aren’t these factorials? I mean, doesn’t this group of numbers already have a name?

Correct. And factorials necessarily are, after 2 and 3, of the form 6X.

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [January 19, 2012, 5:07pm UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/13 "2012-01-19T17:07:46Z")

</div>

> [@Tom\_Tildrum](#):
>
> Aren’t these factorials? I mean, doesn’t this group of numbers already have a name?

One of the problems with the article is that I had to struggle to figure out what his definition of “prim number” is, and I’m still not sure. The article says that they’re multiples of factorials:

> [@](#):
>
> An exhaustive investigation of such possibilities between 1 and 500 suggests that only certain regular, rectangular numbers, which I call ‘prim’ numbers because they are ‘prim and proper,’ or highly divisible, give prime numbers simply by the addition or subtraction of one. These may be loosely understood as those composite integers having the highest number of distinct factorizations in their immediate neighborhood. Further investigation reveals that the prim or most highly divisible numbers are the multiples of the factorials, 1.2.3, 1.2.3.4, 1.2.3.4.5, and so on. Thus we may regard the multiples of six as highly divisible and prim, the multiples of 24 as even more highly divisible and more prim, and so on with the multiples of 120, 720, 5040, etc.

But I can’t tell whether he’s _defining_ “prim numbers” to be numbers that are multiples of factorials, or to be numbers that are “highly divisible” (which is too vague to serve as a definition), or to be numbers that “give prime numbers simply by the addition or subtraction of 1” (which would not be consistent with them being multiples of factorials, since, for example, 24+1 is not prime).

---

<div class="post-metadata">

**Author:** ![Great\_Antibob](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Great\_Antibob](https://boards.straightdope.com/u/Great_Antibob)\
**Post date:** [January 19, 2012, 5:37pm UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/14 "2012-01-19T17:37:01Z")

</div>

I’ll admit I can hardly read a paragraph of the paper without being very disappointed.

Besides the poor writing (there’s no real definition or work shown), there’s not much that’s interesting or profound, as **ultrafilter** has already pointed out.

It’s not profound that so-called “prim” numbers have lots of factors. But the fact that the author doesn’t recognize WHY this should be the case is a major cause for concern.

Also, his potential approaches for solving the Goldbach Conjecture or Riemann Hypothesis are asinine. I’ve seen better attempts by non-academics and high schoolers.

The Goldbach one amount to “if we could prove this other thing that is equivalent to the conjecture, then we could prove this conjecture”.

The proposed Riemann approach is worse. It basically is not actually an approach and just strings some words together. And the words apparently (his language is not precise here) involves shifting from the distribution of primes to the distribution of ‘prims’, for which he also provides no substantive work.

---

<div class="post-metadata">

**Author:** ![Saint\_Cad](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/saint_cad/32/18907_2.png) [@Saint\_Cad](https://boards.straightdope.com/u/Saint_Cad)\
**Post date:** [January 19, 2012, 9:03pm UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/15 "2012-01-19T21:03:16Z")

</div>

My understanding is that “prim” is a number that has so many factors that prim+1 or prim-1 is prime. For example 7! is divisible by 2, 3, 4, 5, 6 and 7 so 7!+1 cannot be divided by any of those numbers. Sounds like a wonderful prime generator until it fails miserable which is taught in sixth grade.

My favorite part

> [@](#):
>
> A Simpler Algorithm  
> To find all primes up to n, we therefore need only:
> 
> a) stop at each multiple of 6, m  
> b) consider m+1 and m-1 as candidates  
> c) test each candidate by dividing it by each prime ≤√m  
> d) conclude a candidate is prime if all such tests show a non-zero remainder.

This is 7th grade math

There is nothing in this paper that a bright (not even gifted) middle-school student interested in number theory could come up with on their own in an hour. If you are interested in the author’s background, [here you go](http://french.chass.utoronto.ca/as-sa/editors/pgm.htm). And yes he has a Ph.D.

---

<div class="post-metadata">

**Author:** ![nivlac](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@nivlac](https://boards.straightdope.com/u/nivlac)\
**Post date:** [January 19, 2012, 10:36pm UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/16 "2012-01-19T22:36:51Z")

</div>

> [@Saint\_Cad](#):
>
> … If you are interested in the author’s background, [here you go](http://french.chass.utoronto.ca/as-sa/editors/pgm.htm). And yes he has a Ph.D.

But not in math! What a surprise.

---

<div class="post-metadata">

**Author:** ![KarlGauss](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/karlgauss/32/3713_2.png) [@KarlGauss](https://boards.straightdope.com/u/KarlGauss)\
**Post date:** [January 19, 2012, 11:44pm UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/17 "2012-01-19T23:44:40Z")

</div>

> [@nivlac](#):
>
> But not in math! What a surprise.

It’s in “Comedy”, actually. I kid you not!

---

<div class="post-metadata">

**Author:** ![Wendell\_Wagner](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@Wendell\_Wagner](https://boards.straightdope.com/u/Wendell_Wagner)\
**Post date:** [January 20, 2012, 4:53am UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/18 "2012-01-20T04:53:00Z")

</div>

Saint Cad writes:

\> If you are interested in the author’s background, here you go.

Um, Saint Cad, didn’t you notice that I already gave a link to that same URL?

---

<div class="post-metadata">

**Author:** ![Enola\_Straight](https://avatars.discourse-cdn.com/v4/letter/e/dec6dc/32.png) [@Enola\_Straight](https://boards.straightdope.com/u/Enola_Straight)\
**Post date:** [January 20, 2012, 5:14am UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/19 "2012-01-20T05:14:56Z")

</div>

> [@Wendell\_Wagner](#):
>
> Enola Straight, where did you even find out about Marteinson’s article? .

I just goggled “6x+1” “6x-1”.  
Looking again at this image  
[http://french.chass.utoronto.ca/as-sa/ASSA-14/modulus6-spiral90.jpg](http://french.chass.utoronto.ca/as-sa/ASSA-14/modulus6-spiral90.jpg)  
I noticed that some of the composite non-primes were divisible by 5, so I figured, since primes tend to thin out the deeper you look, you needed to weed out non-primes more efficiently.

(2_3)+/-1  
(2_3_5)+/-?  
(2_3_5_7)+/-?  
.  
.  
.  
.  
(2_3_5\*…\*n)+/-?  
With ever larger “weeders” (what the OP in my link referred to as “prim” ) one could quickly look deep along the number line; upon finding one, backtrack with the next smallest weeder to catch “missed” primes.

---

<div class="post-metadata">

**Author:** ![Enola\_Straight](https://avatars.discourse-cdn.com/v4/letter/e/dec6dc/32.png) [@Enola\_Straight](https://boards.straightdope.com/u/Enola_Straight)\
**Post date:** [January 21, 2012, 9:47pm UTC](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971/20 "2012-01-21T21:47:15Z")

</div>

Here’s an idea:

According to Gauss the “prime density” up to a certain number (how many primes up to a hundred, up to a thousand, etc) is approximate to the logarithmic interval.

[![](https://plus.maths.org/issue28/features/sautoy/G1.jpg) ](https://plus.maths.org/issue28/features/sautoy/G1.jpg)

What function approximates the “jagged staircase” after you weed with 6x+/-1?

[Next page](https://boards.straightdope.com/t/prime-numbers-and-prim-numbers/609971.md?page=2)
