Käynnissä

Simple python/ruby/php/scala/clojure to find prime numbers

Hi

I need very simple code to be created that does the following--

(1) Function that takes as input Number of prime numbers to be found and keeps on finding prime numbers, till number of prime numbers found by it= No. specified as input param to the function. This function also has checks (before it finds each prime number) a boolean variable named "findmoreprimes"-- if this is set to True, only then it finds prime numbers, otherwise it stops finding prime numbers.

(2) Variant of function of point1-- this function instead of taking number of prime nos to be found as input,takes as input range of int values-- it has to find prime numbers within this range only

(3) Another variant of point 1 and 2-- it takes as input a range of values (within which to find prime numbers) as well as no. of prime numbers to be found by it (within specified range)

(4) Function that returns all the prime numbers found so far by the program (by function of point 1 or point 2 or point 3)

(5) Function that returns no. of prime numbers found so far by the program.(by function of point 1 or point 2 or point 3)

(6) Function that sets value of the Boolean variable 'findmore' (used by function of point 1 or point 2 or point 3)

I need the above code in the following languages--

Ruby/ Python/ Scala/Clojure/ PHP/ Lua

I may select more than one bidder in case one bidder cannot work with all of the above languages.

The work is really simple-- so I expect bids of less than $90 for all of the above languages' functions.

I may need some help in running resp. languages code myself- so please give me few days- 1 week time to test and run your code thoroughly, before I accept the work as complete.

Yours sincerely,

Arvind.

Taidot: PHP, Python, Ruby on Rails, Scala

Näytä lisää: python find prime numbers, python prime, clojure ruby, clojure python ruby, scala program find prime numbers, python find prime, which is prime numbers, the set of prime numbers, test prime number, test for prime number, set of prime numbers, python find, prime number test, prime numbers and, prime numbers 2, prime numbers 1 6, prime numbers 1, prime number one, prime number of 2, prime number function, prime number finding, prime number 4, prime number 2, prime number 1, prime nos

Tietoa työnantajasta:
( 93 arvostelua ) Bangalore, India

Projektin tunnus: #4223756

Myönnetty käyttäjälle:

bogdanneacsa

Hello, I can do this in Python in a couple of hours. I have 3 years experience of Python programming and also am a lecturer at Cluj Napoca Techincal University on Software Design and Structured Data and Algorithms s Lisää

80 $ USD 2 päivässä
(2 arvostelua)
2.2