blob: 3127812a2c8b85e61d4a1fc5ca5297cc11364ee0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
Challenge 1: "Write a script to generate first 10 strong and weak prime numbers.
the nth prime number is represented by p(n).
p(1) = 2
p(2) = 3
p(3) = 5
p(4) = 7
p(5) = 11
Strong Prime number p(n) when p(n) > [ p(n-1) + p(n+1) ] / 2
Weak Prime number p(n) when p(n) < [ p(n-1) + p(n+1) ] / 2
"
My notes:
Sounds easy enough.
Challenge 2: "Write a script to implement the Vigenère cipher. The script
should be able to encode and decode."
My notes:
Ok, pretty easy.
|