Consider n = 1729.
Pick a = 1722.
a^[(n-1)÷2] mod n = 742
Therefore 1729 is composite.
The test seems to hold, here.
173 karma · joined July 26, 2010
Pick a = 1722.
a^[(n-1)÷2] mod n = 742
Therefore 1729 is composite.
The test seems to hold, here.
main = putStrLn . show . sum . take 3000000 $ repeat 1
(Ignoring the random generation, that does not play a role here, does it?)https://github.com/lbolla/dotfiles/blob/master/githooks/pre-...
It PEP8-fies and pyflakes .py files and gjslint-ifies .js files. Other actions can be easily added!
Overall, I'm not impressed.
* the "Hi, <my-name>" dropdown menu must be the most horrible I've ever seen;
* why do I need to have a picture?! I just want to save/share bookmarks!
* all this "stack feature": I barely see the point. grouping can be done with tags (well done with allowing tags with spaces!).
middle = Math.floor((stopIndex + startIndex)/2); Bench files blank comment code
cpp 4 145 236 501
go 5 153 239 546
go_pro 5 132 233 457
java 8 151 352 605
java_pro 8 157 351 772
python 2 110 204 334
scala 2 104 224 384
scala_pro 2 59 62 230