Jump to content

User:Eriksiers/Prime numbers: Difference between revisions

m
minor edits
(created)
 
m (minor edits)
Line 1:
This is something I first wrote several years ago (2002, according the the copyright... I don't remember). It is [[wp:Visual Basic for ApplicationsCategory:VBA|VBA]]/[[wp:Microsoft Excel|Excel]] ([[Visual Basic]] for Applications, Excel version-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 shouldcould 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> -&gt; <code>2^3*11^2</code>)
1,150

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.