Published: 22 Nov 2017 › Updated: 22 Nov 2017
Prime spiral
New project. Create a big prime spiral.
With haskell, I produced all primes under 10000. Let's see if we can put in all of them.
Here is the code I used.
isprime p= null [p | a<-[2..p-1], b<- [2..p-1], a*b==p]
primesinside a b = [p | p<- [a..b], isprime p]
To produce all primes under 10000, I write
primesinside 2 10000
Leave Prime spiral to:
Read more #lumines posts
Best Posts From good-chocolate
We have not curated any of good-chocolate's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From good-chocolate
- Deleted
- I used a hammer
- Steemit keeps logging me off.
- Changing someones opinion on the internet.
- its steels heavier than feathers but im voiceacting
- What's heavier? A kilogram of steel or a kilogram of feathers?
- Reply to anti LGBT video
- Bernie Sanders Townhall LIVE NOW
- Curios in Vietnam
- Most impactful events in the Trump presidency 2017