A BASIC Program To Factor Numbers Into Primes

Image

A BASIC Program To Factor Numbers Into Primes

This program is written in Just BASIC v1.01, which you may download for free at http://justbasic.com/download.html.

*** *** ***

10 print “For what number do you want the prime factorization”;
20 input n
25 c = 3
30 if n <> int(n) then end
40 if n < 4 then goto 450
50 if n/2 <> int(n/2) then goto 100
60 print ” 2″;
70 n = n/2
75 if n = 1 then goto 400
80 goto 50
100 if n/3 <> int(n/3) then goto 200
110 print ” 3″;
120 n = n/3
125 if n = 1 then goto 400
130 goto 100
200 c = c + 2
205 p = 0
210 for t = 3 to c step 2
220 if c/t = int(c/t) then goto 290
230 if n/t <> int(n/t) then goto 290
240 if p > 0 then goto 290
250 p = t
290 next t
295 if p = 0 then goto 200
300 print ” “;p;
310 n = n/p
320 if n = 1 then goto 400
330 if n/p = int(n/p) then goto 300
340 goto 200
400 print
410 goto 10
450 if n = 2 then print ” 2″;
460 if n = 3 then print ” 3″;
470 goto 400
500 end

A Gallery of Polyhedra Which Feature Five-Pointed Star-Patterns

Image

A Gallery of Polyhedra Which Feature Five-Pointed Star-Patterns

The images below may each be enlarged with a single click.

Conjdhfcvex hull dualConvehgdsfx hullConvex fdghullConvex hjgfyullConvex hjgfyull dualConvex nbhull dualConvhgdjyex hullDggual of Convex hullDual jhdfgjfjof Convex hulldual of Stellated Faceted DualFaceted Congfvex hullFaceted Stellated PolyFaceted Stellategggd PolyStellated cxsadfgdDual of Convex hullStellated Faceted DualConvex hull q

I made these using Stella 4d, which you can find at http://www.software3d.com/Stella.php.

A Gallery of Rainbow-Colored Artwork Inspired By Polyhedra

Image

Rainbow Artwork Inspired By Polyhedra

The smaller images below may each be enlarged with a single click.

Ytistorsnow and starsFloralConjdgdhfvbcxvcvex hull dualConjdhfvbcxvcvex hull dualConvex hjgfyull dual rvConvehhggdhgx hull tovrhombi and trapezoidsZonohedrified Dodeca

I made these using Stella 4d, which you can find at http://www.software3d.com/Stella.php.

Two Hollow Hybrids of the Octahedron and the Rhombic Dodecahedron

Image

Two Hollow Variants of the Octahedron

The smaller one may be enlarged with a single click.

bogfdhggdwtie

I made these using Stella 4d, which you can find at http://www.software3d.com/Stella.php.

Hexagonal Mandalas Made of Heptagons

Image

Hexagonal Mandala

Other versions, using different colors, appear below.

hexagonal mandala 2hexagonal mandala 3hexagonal mandala 8hexagonal mandala 5

Variants of the Rhombic Enneacontahedron

Image

Variations of the Rhombic Enneacontahedron

The first variation is above, and the real thing, for comparison, is below. Smaller pictures here can be enlarged with a click.

Zonohedrified Dodeca

Here are two more variants:

Dual of Convex hullcbvcb

I made these using Stella 4d, which you can find at http://www.software3d.com/Stella.php.

Compass

Image

Compass

The Compound of the Truncated Dodecahedron and Its Dual, the Triakis Icosahedron

Image

The Compound of the Truncated Dodecahedron and Its Dual, the Triakis Icosahedron

I made this using Stella 4d, which you can find at http://www.software3d.com/Stella.php.

A Chiral Polyhedron Featuring Sixty Pentagons and Sixty Hexagons, All Irregular

Image

A Chiral Polyhedron Featuring Sixty Pentagons and Sixty Hexagons, All Irregular

I made this using Stella 4d, which you can find at http://www.software3d.com/Stella.php.

A Ring of 26 Rings of 26 Triskaidecagons

Image

A Ring of 26 Rings of 26 Triskaidecagons