User:Eriksiers/Prime numbers: Difference between revisions
Content added Content deleted
(created) |
m (minor edits) |
||
Line 1: | Line 1: | ||
This is something I first wrote several years ago (2002, according the the copyright... I don't remember). It is [[ |
This is something I first wrote several years ago (2002, according the the copyright... I don't remember). It is [[:Category:VBA|VBA]]/[[wp:Microsoft Excel|Excel]] ([[Visual Basic]] for Applications, Excel-specific) code that calculates the [[wp:Integer factorization|factors]] of a series of numbers, highlighting prime numbers by turning on the cell's <code>font.bold</code> property. I used Excel because it's especially suited for the tabular nature of the output. |
||
I've placed it here, in its own page, because I feel that it doesn't specifically fit any of the (current) prime number-related tasks (although part of it does demonstrate [[Primality by Trial Division]] and [[Prime decomposition]]). This |
I've placed it here, in its own page, because I feel that it doesn't specifically fit any of the (current) prime number-related tasks (although part of it does demonstrate [[Primality by Trial Division]] and [[Prime decomposition]]). This could perhaps be listed on the [[:Category:Prime Numbers]] page, but I'll leave that decision to someone else. |
||
This could be improved by using [[run-length encoding]], assuming your implementation of RLE can handle multiple-character strings. (<code>2*2*2*11*11</code> -> <code>2^3*11^2</code>) |
This could be improved by using [[run-length encoding]], assuming your implementation of RLE can handle multiple-character strings. (<code>2*2*2*11*11</code> -> <code>2^3*11^2</code>) |