Timeline for Looking for primes with all-different digits
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 11, 2016 at 20:48 | comment | added | machine yearning | @Daerdemandt. Nice stuff here. Really good point about needless casting. I'll edit my answer just to include a way of grabbing a counterexample | |
Jul 11, 2016 at 15:46 | history | edited | Daerdemandt | CC BY-SA 3.0 |
Covered case that was mentioned in the comment too.
|
Jul 11, 2016 at 15:41 | comment | added | Daerdemandt |
> basics of itertools Make sure you are familiar with generators, especially with a yield from thing. Generating data only as you need it is indeed powerful tool but casts to eager data structures without necessity waste some of that power.
|
|
Jul 11, 2016 at 15:26 | comment | added | BusyAnt |
This answer gives a remarkable complement. The previous one explained to me the basics of itertools though, that I didn't know about, and put me on the right path, that's why I accepted it. Thank you for these pieces of additional information and that new point of view !
|
|
Jul 11, 2016 at 15:11 | history | answered | Daerdemandt | CC BY-SA 3.0 |