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
Power Lifting Lever Belt
SkullVamp
Updated:
Yesterday at 10:32 PM
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Yesterday at 3:55 PM
Colombo
Kaduwela - Two Storey House for Sale
dilrasan
Updated:
Thursday at 2:23 PM
Ad icon
Wechat qr verification
Pawan2005
Updated:
Thursday at 1:28 AM
🚀 GOOGLE AI PRO 18 MONTHS ACTIVATION 🚀
sayuru bandara
Updated:
Wednesday at 5:34 PM
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
Nawa warak dahaya keeyada? (Namaya wadi kireema dahaya)
Post reply
Top
Bottom