Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Fast Composite Number Generator

Name: Anonymous 2013-06-27 0:53

Finally, I have found a solution that generates non-primes that can easily be understood by the layman.
int nonprime() {return (rand() + 2) * 5;}

Interestingly enough this also can be used to find prime numbers, as no number returned by this function is an element of the set of primes, greatly reducing the search space.

Name: Anonymous 2013-06-27 18:52

./

Name: Anonymous 2013-06-27 19:23

Terrible!

Name: Anonymous 2013-06-27 20:02

·\Indeed[sup][/sup].

Name: Anonymous 2013-06-27 20:04

>>43
Fuck.

Name: Anonymous 2013-06-27 20:56

What what?
It's all sound init?
Rivest-Shamir-Aldeman be cracken now? ^^

Name: Anonymous 2013-06-27 21:41

Come on you guys...
NSA hq could have already implemented it, as specified right here, and be running the prime hyper-sieve ;D
do i need to repost the fast fizz-buzz code or somenin?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List