Hacker Newsnew | past | comments | ask | show | jobs | submit | anaphor's commentslogin

There's a functional / lazy version I like that uses a priority queue in order to get the next prime number https://www.cs.hmc.edu/~oneill/papers/Sieve-JFP.pdf

It basically uses the priority queue to store all the composites up to a certain point and then you can assume the next one is prime.

I had some (admittedly not well written) code for it too https://gist.github.com/weskerfoot/4699275

It can also incorporates the wheel factorization optimization mentioned in this article.


Because they all cheated on their coursework and got graded on a curve for exams. Source: I was a TA for an intro CS course.


Watch EEVblog's playlist on DC theory, and then play around with a breadboard and simulations using something like circuitjs. Get some basic tools such as a soldering iron (and solder/wick/sponge/etc), breadboard, wires, and a collection of components like resistors, capacitors, and LEDs, and so on. r/AskElectronics has a guide for all of the practical stuff you need. Pick a project you actually find interesting and work on it (after learning how to safely use your tools and components).

Lots of people get started with things like using a microcontroller to light up some LEDs and so on. That will introduce you to basic concepts like how transistors work as well if you dig into it.

https://www.youtube.com/watch?v=xSRe_4TQbuo&list=PLvOlSehNtu...

https://www.falstad.com/circuit/circuitjs.html

https://www.reddit.com/r/AskElectronics/wiki/beginners/


I have Teksavvy via Cogeco and had no issues (obviously). I just discovered Rogers owns 41% of their shares though :|


don't worry, as with Shaw and Rogers, Audet family controls the votes through supervoting shares. This isn't a democracy.

Rogers only has 13% control of Cogeco itself: https://crtc.gc.ca/ownership/eng/cht043.pdf


I want more info, please email me. I put address in my HN proflie


What more info do you want?


These are just reports people made that the sites were down. Not actual data from monitoring tools or something. I used my Canadian banking website a bunch of times yesterday and had no issues. Banking websites go down for maintenance or randomly start acting slow because of the crappy infrastructure they're built on, or because of other reasons located between your computer and their servers. Nothing I've seen shows any actual evidence that anything out of the ordinary happened. Just confirmation bias.


Or block all of the non-educational youtube channels. Personally a good portion of my youtube usage is educational videos about electronics now. It feels like much less of a waste of time than twitter or instagram.


They referenced the movie on Stranger Things as well with a line similar to the one River Phoenix's character says: "It's fascinating what 50 bucks will get you at the county recorder's office"


You can even place a backdoor on a circuit without any noticeable physical changes (other than chemical differences which are extremely hard to detect). You basically change which chemicals are used to "dope" the transistors, which changes their polarity.

See: https://news.ycombinator.com/item?id=26860715


It works if you put it in "Verbatim" mode for that particular search, but I don't know how to make it permanent. Does anyone know if there's a way to always force it to use "verbatim" mode?


I know of a way and have been using it for years. It's a bit too complex to describe here. Reach out to me via email if interested. My email is in my profile.


You can always call the C functions directly (from a shared lib) although admittedly it's a pain because you have to deal with unmanaged pointers very often.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: