Inspiration
A prime number generator was one of the first pieces of code I ever wrote, and its stuck with me ever since. They fascinated me, and for every language I've learned, I've written a prime number generator for it. With each new iteration I've tried my best to make it faster and more efficient. So I thought with this I would pay homage to one of my favorite kinds of projects.
What it does
Its fairly basic really, It iterates through a chosen algorithm, and visualizes the current state. Its mainly focused on the visual representation of numbers, but tones corresponding to numbers are also played for extra feedback. Ultimately the hope is to hold the viewers interest for just a few minutes, and maybe teach them just a bit about the differing method to generate primes.
How we built it
Its built on javascript css and html. At the very beginning I built a quick 7 segment display object for aesthetic flare, and ended up using it quite a bit. Most of the development was done in the Cloud 9 IDE, although initially it was developed in Visual Studio.
Challenges we ran into
Time wasn't so much of a problem as screen space was. Initial plans included visualization of The Sieve of Atkins using a modulo 60 wheel. I had really hoped to complete this part of the project, as almost no visualizations of Atkins can be found online, despite it being the strongest algorithm available. However I quickly ran into the cold truth that there just simply wasn't enough pixels to render a modulo sixty wheel with enough layers to be useful.
my lack of any real competency with css also meant that for the most part it only really works in 16:9 1080p. I really should have used anything but VH, but I was in a crunch, and it was too late to change it by the time i realized there was a problem.
Accomplishments that we're proud of
Although its a bit shallow, I am actually quite happy with the user interface. Its lacking in some places, but I typically don't do very extensive or impressive user interfaces. while it may be simple in the grand scheme of things, compared to most of my other projects, this easily has the most complex UI.
What we learned
I've learned quite a bit about creating and managing a user interface. and also the difficulty of managing screen space. There's a million things to include into app, and screen space is much more limited than I had realized.
What's next for Prime Generation Visualizer
likely some heavy optimization, and implementation of the Sieve of atkins. This is the first time I've done this kind of event, so I may even end up revisiting the idea later.
Log in or sign up for Devpost to join the conversation.