Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
RHCSA, RHCE, AWS, Docker, Kubernetes Training
Sanjeewani95
Updated:
Tuesday at 10:28 AM
🛡️ Kaspersky Antivirus – 1 Year / 1 Device | Rs. 2,300 | Only 9 Left
KSPathirana
Updated:
Monday at 2:42 PM
Ad icon
Professional CCTV Installation Service
Techguy231
Updated:
Sunday at 10:50 AM
Ad icon
I'll research & write an article - Rs. 2000 onwards
Blogerwiki
Updated:
Sep 3, 2026
House Plan
lenura
Updated:
Sep 2, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri PRO!
Ek Code Chef challenge- Welcome Developers, Hackers & Noobs
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Ayeshlive" data-source="post: 18245598" data-attributes="member: 363439"><p><span style="font-size: 15px">here is my challenge. </span></p><p><span style="font-size: 15px">(I work for a company as a security audit, and this is a cryptography 101 algorithm. There are no "perfect" algorithms and such algorithms are not practical for today. But if you can write a good one, you are many steps ahead in your programming career! At least give it a try. </span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">You need to write an algorithm that accepts a 32 bit integer. Then, it has to provide two integers back, that when multiplied, produces the given number. Now the challenge is that BOTH of these returns values should be Prime numbers. If it can't find a prime number factorization, it should return 0. </span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">Example: input = 35; output should be "7 * 35". </span></p><p><span style="font-size: 15px">Input = 143; output should be 11*13 because 11*13 = 143. </span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">You can find examples off the internet. But try to write one first. </span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">Winner is chosen after a reasonable number of submissions. Fastest code wins. </span></p><p><span style="font-size: 15px">At the time of evaluation, a sample input will be given, and the snippet that takes the smallest amount of time yet provides the correct answer wins. </span></p></blockquote><p></p>
[QUOTE="Ayeshlive, post: 18245598, member: 363439"] [size=4]here is my challenge. (I work for a company as a security audit, and this is a cryptography 101 algorithm. There are no "perfect" algorithms and such algorithms are not practical for today. But if you can write a good one, you are many steps ahead in your programming career! At least give it a try. You need to write an algorithm that accepts a 32 bit integer. Then, it has to provide two integers back, that when multiplied, produces the given number. Now the challenge is that BOTH of these returns values should be Prime numbers. If it can't find a prime number factorization, it should return 0. Example: input = 35; output should be "7 * 35". Input = 143; output should be 11*13 because 11*13 = 143. You can find examples off the internet. But try to write one first. Winner is chosen after a reasonable number of submissions. Fastest code wins. At the time of evaluation, a sample input will be given, and the snippet that takes the smallest amount of time yet provides the correct answer wins. [/size] [/QUOTE]
Insert quotes…
Verification
Winadiyakata thappara keeyak tibeda?
Post reply
Top
Bottom