0

Help me with the Pseudo code for generating Composite and Prime numbers

I need to generate a composite number n And then two prime numbers p & q which would satisfy the condition as follows . p&q>1 . n==p*q . Bit_length of p and q > 512 . p and q are primes How do I start? Can someone help me with pseudocode

23rd Aug 2019, 7:42 PM
Kshitij Shukla
Kshitij Shukla - avatar
1 Odpowiedź
+ 1
I make my psuedocode as python comments first. I arrange by function first. Think getters and putters. What needs to be returned or passed. At the end of the day, I have a comment briefly explaining what it's doing, and then a function or possible one liner, performing the task. If you really want to make it proper, add annotations and triple quoted doc strings 👍😀👍
23rd Aug 2019, 9:51 PM
Steven M
Steven M - avatar