You have been tasked with writing an application to remove records (lines) in a flat file where
the number in the first column is strictly less than 7500 and is a prime number. The file is in a
comma separated value (CSV) format that has two fields (columns):
A number, which is a long unsigned integer and may be non-unique; and
A string that may contain up to and including 1024 characters.
An example set of inputs and outputs is given in the table below. Note that 7867 is a prime.
The application shall read the file from stdin and write its output to stdout. Examples of
how this application could be used are shown in the table below.
OS Example Usage
Windows type [login to view URL] | python [login to view URL]
Unix cat [login to view URL] | python [login to view URL]
This application will be relied upon by other team members and people outside your team.
The file may contain many records (tens of billions) and thus scalability with respect to run
time and memory usage is important.
We prefer your solution to be written in Python but you may use a different language if you
wish. You are free to use any tools and/or libraries as you see fit. To determine whether a
number is a prime or not, you may: (1) use the sympy Python library, (2) use another library
so long as it easy for us to find – Python packages should be installable via pip or (3) write
your own implementation and provide it as part of your solution.
You should spend less than 1 hour on this exercise.
The deliverable for this exercise is a single source file (.py or equivalent for other languages)
or a Zip file if your solution has multiple source files.
We will be assessing your solution by:
The correctness of your solution;
Whether your scalabe is scalable with respect to running time and memory usage;
Whether it adheres to good programming practices that make this application easy to
use and maintain.
25 freelancer đang chào giá trung bình $131 cho công việc này
Hi, I have really good expertise in Python. I have checked your project and believe that I can do it. Please ping me to discuss details. Regards, Sajid
Hello. I am python and C++ expert. I can solve your problem. If you hire me, you can get the best result for a short time. I will wait for your response.
Ηι, I just finished my postgraduate studies at the IT department where we worked a lot on Python programming. I have worked on similar projects, so it will be easy for me to do what you ask for.