Arthur Besse@lemmy.ml to Programmer Humor@lemmy.mlEnglish · edit-28 months agoIncredible stochastic algorithm, gets more reliable the larger your input, incredibly fast, trivial to implement and deterministic on its inputslemmy.mlimagemessage-square34linkfedilinkarrow-up1388arrow-down15file-text
arrow-up1383arrow-down1imageIncredible stochastic algorithm, gets more reliable the larger your input, incredibly fast, trivial to implement and deterministic on its inputslemmy.mlArthur Besse@lemmy.ml to Programmer Humor@lemmy.mlEnglish · edit-28 months agomessage-square34linkfedilinkfile-text
cross-posted from: https://lemmy.blahaj.zone/post/38950495 https://cosocial.ca/@mhoye/116111505546606451
minus-squaresepiroth154@feddit.nllinkfedilinkarrow-up26·8 months agoYou could simplify it even further by removing the int x parameter of the function…
minus-squareobelisk_complex@piefed.cadeleted by creatorlinkfedilinkEnglisharrow-up15arrow-down1·edit-21 month agodeleted by creator
minus-squareneedanke@feddit.orglinkfedilinkarrow-up3·8 months agoEven better, do the work at compile time to respect the customers resources: const bool isPrime = false
minus-squaresepiroth154@feddit.nllinkfedilinkarrow-up3·8 months agoMy gosh, you always feel so stupid when someone points out something so obvious! Thanks
You could simplify it even further by removing the int x parameter of the function…
deleted by creator
Even better, do the work at compile time to respect the customers resources:
const bool isPrime = falseMy gosh, you always feel so stupid when someone points out something so obvious! Thanks