It should accept only positive whole numbers.So you create a function like done in examples:
Number_of_Primes(12)=>[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37]
Number_of_Primes(1)=>[2]
Number_of_Primes(0)=>[]
Number_of_Primes(-12)=>"Invalid Input"
def Number_of_Primes(n):
primes=[]
x=2
if n<0 or type(n)!=int:
return "Invalid Input"
else:
while len(primes)<n:
if x==2 or x==3 or x==5 or x==7 or x%2!=0 and x%3!=0 and x%5!=0 and x%7!=0:
primes.append(x)
x+=1
return primes
import codewars_test as test
# TODO Write tests
import solution # or from solution import example
# test.assert_equals(actual, expected, [optional] message)
@test.describe("Positive Integers")
def test_group():
@test.it("test case")
def test_case():
test.assert_equals(Number_of_Primes(12),[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37])
test.assert_equals(Number_of_Primes(64),[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 121, 127, 131, 137, 139, 143, 149, 151, 157, 163, 167, 169, 173, 179, 181, 187, 191, 193, 197, 199, 209, 211, 221, 223, 227, 229, 233, 239, 241, 247, 251, 253, 257, 263])
test.assert_equals(Number_of_Primes(30),[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113])
test.assert_equals(Number_of_Primes(3),[2,3,5])
test.assert_equals(Number_of_Primes(5),[2, 3, 5, 7, 11])
test.assert_equals(Number_of_Primes(100),[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 121, 127, 131, 137, 139, 143, 149, 151, 157, 163, 167, 169, 173, 179, 181, 187, 191, 193, 197, 199, 209, 211, 221, 223, 227, 229, 233, 239, 241, 247, 251, 253, 257, 263, 269, 271, 277, 281, 283, 289, 293, 299, 307, 311, 313, 317, 319, 323, 331, 337, 341, 347, 349, 353, 359, 361, 367, 373, 377, 379, 383, 389, 391, 397, 401, 403, 407, 409, 419, 421])
test.assert_equals(Number_of_Primes(47),[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 121, 127, 131, 137, 139, 143, 149, 151, 157, 163, 167, 169, 173, 179, 181, 187, 191])
test.assert_equals(Number_of_Primes(84),[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 121, 127, 131, 137, 139, 143, 149, 151, 157, 163, 167, 169, 173, 179, 181, 187, 191, 193, 197, 199, 209, 211, 221, 223, 227, 229, 233, 239, 241, 247, 251, 253, 257, 263, 269, 271, 277, 281, 283, 289, 293, 299, 307, 311, 313, 317, 319, 323, 331, 337, 341, 347, 349, 353])
test.assert_equals(Number_of_Primes(35),[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 121, 127, 131, 137, 139])
test.assert_equals(Number_of_Primes(250),[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 121, 127, 131, 137, 139, 143, 149, 151, 157, 163, 167, 169, 173, 179, 181, 187, 191, 193, 197, 199, 209, 211, 221, 223, 227, 229, 233, 239, 241, 247, 251, 253, 257, 263, 269, 271, 277, 281, 283, 289, 293, 299, 307, 311, 313, 317, 319, 323, 331, 337, 341, 347, 349, 353, 359, 361, 367, 373, 377, 379, 383, 389, 391, 397, 401, 403, 407, 409, 419, 421, 431, 433, 437, 439, 443, 449, 451, 457, 461, 463, 467, 473, 479, 481, 487, 491, 493, 499, 503, 509, 517, 521, 523, 527, 529, 533, 541, 547, 551, 557, 559, 563, 569, 571, 577, 583, 587, 589, 593, 599, 601, 607, 611, 613, 617, 619, 629, 631, 641, 643, 647, 649, 653, 659, 661, 667, 671, 673, 677, 683, 689, 691, 697, 701, 703, 709, 713, 719, 727, 731, 733, 737, 739, 743, 751, 757, 761, 767, 769, 773, 779, 781, 787, 793, 797, 799, 803, 809, 811, 817, 821, 823, 827, 829, 839, 841, 851, 853, 857, 859, 863, 869, 871, 877, 881, 883, 887, 893, 899, 901, 907, 911, 913, 919, 923, 929, 937, 941, 943, 947, 949, 953, 961, 967, 971, 977, 979, 983, 989, 991, 997, 1003, 1007, 1009, 1013, 1019, 1021, 1027, 1031, 1033, 1037, 1039, 1049, 1051, 1061, 1063, 1067, 1069, 1073, 1079])
test.assert_equals(Number_of_Primes(7),[2, 3, 5, 7, 11, 13, 17])
test.assert_equals(Number_of_Primes(65),[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 121, 127, 131, 137, 139, 143, 149, 151, 157, 163, 167, 169, 173, 179, 181, 187, 191, 193, 197, 199, 209, 211, 221, 223, 227, 229, 233, 239, 241, 247, 251, 253, 257, 263, 269])
test.assert_equals(Number_of_Primes(48),[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 121, 127, 131, 137, 139, 143, 149, 151, 157, 163, 167, 169, 173, 179, 181, 187, 191, 193])
test.assert_equals(Number_of_Primes(23),[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83])
test.assert_equals(Number_of_Primes(83),[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 121, 127, 131, 137, 139, 143, 149, 151, 157, 163, 167, 169, 173, 179, 181, 187, 191, 193, 197, 199, 209, 211, 221, 223, 227, 229, 233, 239, 241, 247, 251, 253, 257, 263, 269, 271, 277, 281, 283, 289, 293, 299, 307, 311, 313, 317, 319, 323, 331, 337, 341, 347, 349])
@test.describe("Non-whole Numbers")
def test_group():
@test.it("test case")
def test_case():
test.assert_equals(Number_of_Primes(31.34),"Invalid Input")
test.assert_equals(Number_of_Primes(7/11),"Invalid Input")
test.assert_equals(Number_of_Primes(1.3133),"Invalid Input")
test.assert_equals(Number_of_Primes(1214.2412),"Invalid Input")
test.assert_equals(Number_of_Primes(469.313), "Invalid Input")
test.assert_equals(Number_of_Primes(12/567),"Invalid Input")
test.assert_equals(Number_of_Primes(156/32),"Invalid Input")
test.assert_equals(Number_of_Primes(12456/2356),"Invalid Input")
test.assert_equals(Number_of_Primes(32.12/43),"Invalid Input")
@test.describe("Random Numbers")
def test_group():
@test.it("test case")
def test_case():
test.assert_equals(Number_of_Primes(1000),[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 121, 127, 131, 137, 139, 143, 149, 151, 157, 163, 167, 169, 173, 179, 181, 187, 191, 193, 197, 199, 209, 211, 221, 223, 227, 229, 233, 239, 241, 247, 251, 253, 257, 263, 269, 271, 277, 281, 283, 289, 293, 299, 307, 311, 313, 317, 319, 323, 331, 337, 341, 347, 349, 353, 359, 361, 367, 373, 377, 379, 383, 389, 391, 397, 401, 403, 407, 409, 419, 421, 431, 433, 437, 439, 443, 449, 451, 457, 461, 463, 467, 473, 479, 481, 487, 491, 493, 499, 503, 509, 517, 521, 523, 527, 529, 533, 541, 547, 551, 557, 559, 563, 569, 571, 577, 583, 587, 589, 593, 599, 601, 607, 611, 613, 617, 619, 629, 631, 641, 643, 647, 649, 653, 659, 661, 667, 671, 673, 677, 683, 689, 691, 697, 701, 703, 709, 713, 719, 727, 731, 733, 737, 739, 743, 751, 757, 761, 767, 769, 773, 779, 781, 787, 793, 797, 799, 803, 809, 811, 817, 821, 823, 827, 829, 839, 841, 851, 853, 857, 859, 863, 869, 871, 877, 881, 883, 887, 893, 899, 901, 907, 911, 913, 919, 923, 929, 937, 941, 943, 947, 949, 953, 961, 967, 971, 977, 979, 983, 989, 991, 997, 1003, 1007, 1009, 1013, 1019, 1021, 1027, 1031, 1033, 1037, 1039, 1049, 1051, 1061, 1063, 1067, 1069, 1073, 1079, 1081, 1087, 1091, 1093, 1097, 1103, 1109, 1111, 1117, 1121, 1123, 1129, 1133, 1139, 1147, 1151, 1153, 1157, 1159, 1163, 1171, 1177, 1181, 1187, 1189, 1193, 1199, 1201, 1207, 1213, 1217, 1219, 1223, 1229, 1231, 1237, 1241, 1243, 1247, 1249, 1259, 1261, 1271, 1273, 1277, 1279, 1283, 1289, 1291, 1297, 1301, 1303, 1307, 1313, 1319, 1321, 1327, 1331, 1333, 1339, 1343, 1349, 1357, 1361, 1363, 1367, 1369, 1373, 1381, 1387, 1391, 1397, 1399, 1403, 1409, 1411, 1417, 1423, 1427, 1429, 1433, 1439, 1441, 1447, 1451, 1453, 1457, 1459, 1469, 1471, 1481, 1483, 1487, 1489, 1493, 1499, 1501, 1507, 1511, 1513, 1517, 1523, 1529, 1531, 1537, 1541, 1543, 1549, 1553, 1559, 1567, 1571, 1573, 1577, 1579, 1583, 1591, 1597, 1601, 1607, 1609, 1613, 1619, 1621, 1627, 1633, 1637, 1639, 1643, 1649, 1651, 1657, 1661, 1663, 1667, 1669, 1679, 1681, 1691, 1693, 1697, 1699, 1703, 1709, 1711, 1717, 1721, 1723, 1727, 1733, 1739, 1741, 1747, 1751, 1753, 1759, 1763, 1769, 1777, 1781, 1783, 1787, 1789, 1793, 1801, 1807, 1811, 1817, 1819, 1823, 1829, 1831, 1837, 1843, 1847, 1849, 1853, 1859, 1861, 1867, 1871, 1873, 1877, 1879, 1889, 1891, 1901, 1903, 1907, 1909, 1913, 1919, 1921, 1927, 1931, 1933, 1937, 1943, 1949, 1951, 1957, 1961, 1963, 1969, 1973, 1979, 1987, 1991, 1993, 1997, 1999, 2003, 2011, 2017, 2021, 2027, 2029, 2033, 2039, 2041, 2047, 2053, 2057, 2059, 2063, 2069, 2071, 2077, 2081, 2083, 2087, 2089, 2099, 2101, 2111, 2113, 2117, 2119, 2123, 2129, 2131, 2137, 2141, 2143, 2147, 2153, 2159, 2161, 2167, 2171, 2173, 2179, 2183, 2189, 2197, 2201, 2203, 2207, 2209, 2213, 2221, 2227, 2231, 2237, 2239, 2243, 2249, 2251, 2257, 2263, 2267, 2269, 2273, 2279, 2281, 2287, 2291, 2293, 2297, 2299, 2309, 2311, 2321, 2323, 2327, 2329, 2333, 2339, 2341, 2347, 2351, 2353, 2357, 2363, 2369, 2371, 2377, 2381, 2383, 2389, 2393, 2399, 2407, 2411, 2413, 2417, 2419, 2423, 2431, 2437, 2441, 2447, 2449, 2453, 2459, 2461, 2467, 2473, 2477, 2479, 2483, 2489, 2491, 2497, 2501, 2503, 2507, 2509, 2519, 2521, 2531, 2533, 2537, 2539, 2543, 2549, 2551, 2557, 2561, 2563, 2567, 2573, 2579, 2581, 2587, 2591, 2593, 2599, 2603, 2609, 2617, 2621, 2623, 2627, 2629, 2633, 2641, 2647, 2651, 2657, 2659, 2663, 2669, 2671, 2677, 2683, 2687, 2689, 2693, 2699, 2701, 2707, 2711, 2713, 2717, 2719, 2729, 2731, 2741, 2743, 2747, 2749, 2753, 2759, 2761, 2767, 2771, 2773, 2777, 2783, 2789, 2791, 2797, 2801, 2803, 2809, 2813, 2819, 2827, 2831, 2833, 2837, 2839, 2843, 2851, 2857, 2861, 2867, 2869, 2873, 2879, 2881, 2887, 2893, 2897, 2899, 2903, 2909, 2911, 2917, 2921, 2923, 2927, 2929, 2939, 2941, 2951, 2953, 2957, 2959, 2963, 2969, 2971, 2977, 2981, 2983, 2987, 2993, 2999, 3001, 3007, 3011, 3013, 3019, 3023, 3029, 3037, 3041, 3043, 3047, 3049, 3053, 3061, 3067, 3071, 3077, 3079, 3083, 3089, 3091, 3097, 3103, 3107, 3109, 3113, 3119, 3121, 3127, 3131, 3133, 3137, 3139, 3149, 3151, 3161, 3163, 3167, 3169, 3173, 3179, 3181, 3187, 3191, 3193, 3197, 3203, 3209, 3211, 3217, 3221, 3223, 3229, 3233, 3239, 3247, 3251, 3253, 3257, 3259, 3263, 3271, 3277, 3281, 3287, 3289, 3293, 3299, 3301, 3307, 3313, 3317, 3319, 3323, 3329, 3331, 3337, 3341, 3343, 3347, 3349, 3359, 3361, 3371, 3373, 3377, 3379, 3383, 3389, 3391, 3397, 3401, 3403, 3407, 3413, 3419, 3421, 3427, 3431, 3433, 3439, 3443, 3449, 3457, 3461, 3463, 3467, 3469, 3473, 3481, 3487, 3491, 3497, 3499, 3503, 3509, 3511, 3517, 3523, 3527, 3529, 3533, 3539, 3541, 3547, 3551, 3553, 3557, 3559, 3569, 3571, 3581, 3583, 3587, 3589, 3593, 3599, 3601, 3607, 3611, 3613, 3617, 3623, 3629, 3631, 3637, 3641, 3643, 3649, 3653, 3659, 3667, 3671, 3673, 3677, 3679, 3683, 3691, 3697, 3701, 3707, 3709, 3713, 3719, 3721, 3727, 3733, 3737, 3739, 3743, 3749, 3751, 3757, 3761, 3763, 3767, 3769, 3779, 3781, 3791, 3793, 3797, 3799, 3803, 3809, 3811, 3817, 3821, 3823, 3827, 3833, 3839, 3841, 3847, 3851, 3853, 3859, 3863, 3869, 3877, 3881, 3883, 3887, 3889, 3893, 3901, 3907, 3911, 3917, 3919, 3923, 3929, 3931, 3937, 3943, 3947, 3949, 3953, 3959, 3961, 3967, 3971, 3973, 3977, 3979, 3989, 3991, 4001, 4003, 4007, 4009, 4013, 4019, 4021, 4027, 4031, 4033, 4037, 4043, 4049, 4051, 4057, 4061, 4063, 4069, 4073, 4079, 4087, 4091, 4093, 4097, 4099, 4103, 4111, 4117, 4121, 4127, 4129, 4133, 4139, 4141, 4147, 4153, 4157, 4159, 4163, 4169, 4171, 4177, 4181, 4183, 4187, 4189, 4199, 4201, 4211, 4213, 4217, 4219, 4223, 4229, 4231, 4237, 4241, 4243, 4247, 4253, 4259, 4261, 4267, 4271, 4273, 4279, 4283, 4289, 4297, 4301, 4303, 4307, 4309, 4313, 4321, 4327, 4331, 4337, 4339, 4343, 4349, 4351, 4357, 4363])
test.assert_equals(Number_of_Primes(-4532.43),"Invalid Input")
test.assert_equals(Number_of_Primes(155.23),"Invalid Input")
test.assert_equals(Number_of_Primes(1212),[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 121, 127, 131, 137, 139, 143, 149, 151, 157, 163, 167, 169, 173, 179, 181, 187, 191, 193, 197, 199, 209, 211, 221, 223, 227, 229, 233, 239, 241, 247, 251, 253, 257, 263, 269, 271, 277, 281, 283, 289, 293, 299, 307, 311, 313, 317, 319, 323, 331, 337, 341, 347, 349, 353, 359, 361, 367, 373, 377, 379, 383, 389, 391, 397, 401, 403, 407, 409, 419, 421, 431, 433, 437, 439, 443, 449, 451, 457, 461, 463, 467, 473, 479, 481, 487, 491, 493, 499, 503, 509, 517, 521, 523, 527, 529, 533, 541, 547, 551, 557, 559, 563, 569, 571, 577, 583, 587, 589, 593, 599, 601, 607, 611, 613, 617, 619, 629, 631, 641, 643, 647, 649, 653, 659, 661, 667, 671, 673, 677, 683, 689, 691, 697, 701, 703, 709, 713, 719, 727, 731, 733, 737, 739, 743, 751, 757, 761, 767, 769, 773, 779, 781, 787, 793, 797, 799, 803, 809, 811, 817, 821, 823, 827, 829, 839, 841, 851, 853, 857, 859, 863, 869, 871, 877, 881, 883, 887, 893, 899, 901, 907, 911, 913, 919, 923, 929, 937, 941, 943, 947, 949, 953, 961, 967, 971, 977, 979, 983, 989, 991, 997, 1003, 1007, 1009, 1013, 1019, 1021, 1027, 1031, 1033, 1037, 1039, 1049, 1051, 1061, 1063, 1067, 1069, 1073, 1079, 1081, 1087, 1091, 1093, 1097, 1103, 1109, 1111, 1117, 1121, 1123, 1129, 1133, 1139, 1147, 1151, 1153, 1157, 1159, 1163, 1171, 1177, 1181, 1187, 1189, 1193, 1199, 1201, 1207, 1213, 1217, 1219, 1223, 1229, 1231, 1237, 1241, 1243, 1247, 1249, 1259, 1261, 1271, 1273, 1277, 1279, 1283, 1289, 1291, 1297, 1301, 1303, 1307, 1313, 1319, 1321, 1327, 1331, 1333, 1339, 1343, 1349, 1357, 1361, 1363, 1367, 1369, 1373, 1381, 1387, 1391, 1397, 1399, 1403, 1409, 1411, 1417, 1423, 1427, 1429, 1433, 1439, 1441, 1447, 1451, 1453, 1457, 1459, 1469, 1471, 1481, 1483, 1487, 1489, 1493, 1499, 1501, 1507, 1511, 1513, 1517, 1523, 1529, 1531, 1537, 1541, 1543, 1549, 1553, 1559, 1567, 1571, 1573, 1577, 1579, 1583, 1591, 1597, 1601, 1607, 1609, 1613, 1619, 1621, 1627, 1633, 1637, 1639, 1643, 1649, 1651, 1657, 1661, 1663, 1667, 1669, 1679, 1681, 1691, 1693, 1697, 1699, 1703, 1709, 1711, 1717, 1721, 1723, 1727, 1733, 1739, 1741, 1747, 1751, 1753, 1759, 1763, 1769, 1777, 1781, 1783, 1787, 1789, 1793, 1801, 1807, 1811, 1817, 1819, 1823, 1829, 1831, 1837, 1843, 1847, 1849, 1853, 1859, 1861, 1867, 1871, 1873, 1877, 1879, 1889, 1891, 1901, 1903, 1907, 1909, 1913, 1919, 1921, 1927, 1931, 1933, 1937, 1943, 1949, 1951, 1957, 1961, 1963, 1969, 1973, 1979, 1987, 1991, 1993, 1997, 1999, 2003, 2011, 2017, 2021, 2027, 2029, 2033, 2039, 2041, 2047, 2053, 2057, 2059, 2063, 2069, 2071, 2077, 2081, 2083, 2087, 2089, 2099, 2101, 2111, 2113, 2117, 2119, 2123, 2129, 2131, 2137, 2141, 2143, 2147, 2153, 2159, 2161, 2167, 2171, 2173, 2179, 2183, 2189, 2197, 2201, 2203, 2207, 2209, 2213, 2221, 2227, 2231, 2237, 2239, 2243, 2249, 2251, 2257, 2263, 2267, 2269, 2273, 2279, 2281, 2287, 2291, 2293, 2297, 2299, 2309, 2311, 2321, 2323, 2327, 2329, 2333, 2339, 2341, 2347, 2351, 2353, 2357, 2363, 2369, 2371, 2377, 2381, 2383, 2389, 2393, 2399, 2407, 2411, 2413, 2417, 2419, 2423, 2431, 2437, 2441, 2447, 2449, 2453, 2459, 2461, 2467, 2473, 2477, 2479, 2483, 2489, 2491, 2497, 2501, 2503, 2507, 2509, 2519, 2521, 2531, 2533, 2537, 2539, 2543, 2549, 2551, 2557, 2561, 2563, 2567, 2573, 2579, 2581, 2587, 2591, 2593, 2599, 2603, 2609, 2617, 2621, 2623, 2627, 2629, 2633, 2641, 2647, 2651, 2657, 2659, 2663, 2669, 2671, 2677, 2683, 2687, 2689, 2693, 2699, 2701, 2707, 2711, 2713, 2717, 2719, 2729, 2731, 2741, 2743, 2747, 2749, 2753, 2759, 2761, 2767, 2771, 2773, 2777, 2783, 2789, 2791, 2797, 2801, 2803, 2809, 2813, 2819, 2827, 2831, 2833, 2837, 2839, 2843, 2851, 2857, 2861, 2867, 2869, 2873, 2879, 2881, 2887, 2893, 2897, 2899, 2903, 2909, 2911, 2917, 2921, 2923, 2927, 2929, 2939, 2941, 2951, 2953, 2957, 2959, 2963, 2969, 2971, 2977, 2981, 2983, 2987, 2993, 2999, 3001, 3007, 3011, 3013, 3019, 3023, 3029, 3037, 3041, 3043, 3047, 3049, 3053, 3061, 3067, 3071, 3077, 3079, 3083, 3089, 3091, 3097, 3103, 3107, 3109, 3113, 3119, 3121, 3127, 3131, 3133, 3137, 3139, 3149, 3151, 3161, 3163, 3167, 3169, 3173, 3179, 3181, 3187, 3191, 3193, 3197, 3203, 3209, 3211, 3217, 3221, 3223, 3229, 3233, 3239, 3247, 3251, 3253, 3257, 3259, 3263, 3271, 3277, 3281, 3287, 3289, 3293, 3299, 3301, 3307, 3313, 3317, 3319, 3323, 3329, 3331, 3337, 3341, 3343, 3347, 3349, 3359, 3361, 3371, 3373, 3377, 3379, 3383, 3389, 3391, 3397, 3401, 3403, 3407, 3413, 3419, 3421, 3427, 3431, 3433, 3439, 3443, 3449, 3457, 3461, 3463, 3467, 3469, 3473, 3481, 3487, 3491, 3497, 3499, 3503, 3509, 3511, 3517, 3523, 3527, 3529, 3533, 3539, 3541, 3547, 3551, 3553, 3557, 3559, 3569, 3571, 3581, 3583, 3587, 3589, 3593, 3599, 3601, 3607, 3611, 3613, 3617, 3623, 3629, 3631, 3637, 3641, 3643, 3649, 3653, 3659, 3667, 3671, 3673, 3677, 3679, 3683, 3691, 3697, 3701, 3707, 3709, 3713, 3719, 3721, 3727, 3733, 3737, 3739, 3743, 3749, 3751, 3757, 3761, 3763, 3767, 3769, 3779, 3781, 3791, 3793, 3797, 3799, 3803, 3809, 3811, 3817, 3821, 3823, 3827, 3833, 3839, 3841, 3847, 3851, 3853, 3859, 3863, 3869, 3877, 3881, 3883, 3887, 3889, 3893, 3901, 3907, 3911, 3917, 3919, 3923, 3929, 3931, 3937, 3943, 3947, 3949, 3953, 3959, 3961, 3967, 3971, 3973, 3977, 3979, 3989, 3991, 4001, 4003, 4007, 4009, 4013, 4019, 4021, 4027, 4031, 4033, 4037, 4043, 4049, 4051, 4057, 4061, 4063, 4069, 4073, 4079, 4087, 4091, 4093, 4097, 4099, 4103, 4111, 4117, 4121, 4127, 4129, 4133, 4139, 4141, 4147, 4153, 4157, 4159, 4163, 4169, 4171, 4177, 4181, 4183, 4187, 4189, 4199, 4201, 4211, 4213, 4217, 4219, 4223, 4229, 4231, 4237, 4241, 4243, 4247, 4253, 4259, 4261, 4267, 4271, 4273, 4279, 4283, 4289, 4297, 4301, 4303, 4307, 4309, 4313, 4321, 4327, 4331, 4337, 4339, 4343, 4349, 4351, 4357, 4363, 4367, 4369, 4373, 4379, 4381, 4387, 4391, 4393, 4397, 4399, 4409, 4411, 4421, 4423, 4427, 4429, 4433, 4439, 4441, 4447, 4451, 4453, 4457, 4463, 4469, 4471, 4477, 4481, 4483, 4489, 4493, 4499, 4507, 4511, 4513, 4517, 4519, 4523, 4531, 4537, 4541, 4547, 4549, 4553, 4559, 4561, 4567, 4573, 4577, 4579, 4583, 4589, 4591, 4597, 4601, 4603, 4607, 4609, 4619, 4621, 4631, 4633, 4637, 4639, 4643, 4649, 4651, 4657, 4661, 4663, 4667, 4673, 4679, 4681, 4687, 4691, 4693, 4699, 4703, 4709, 4717, 4721, 4723, 4727, 4729, 4733, 4741, 4747, 4751, 4757, 4759, 4763, 4769, 4771, 4777, 4783, 4787, 4789, 4793, 4799, 4801, 4807, 4811, 4813, 4817, 4819, 4829, 4831, 4841, 4843, 4847, 4849, 4853, 4859, 4861, 4867, 4871, 4873, 4877, 4883, 4889, 4891, 4897, 4901, 4903, 4909, 4913, 4919, 4927, 4931, 4933, 4937, 4939, 4943, 4951, 4957, 4961, 4967, 4969, 4973, 4979, 4981, 4987, 4993, 4997, 4999, 5003, 5009, 5011, 5017, 5021, 5023, 5027, 5029, 5039, 5041, 5051, 5053, 5057, 5059, 5063, 5069, 5071, 5077, 5081, 5083, 5087, 5093, 5099, 5101, 5107, 5111, 5113, 5119, 5123, 5129, 5137, 5141, 5143, 5147, 5149, 5153, 5161, 5167, 5171, 5177, 5179, 5183, 5189, 5191, 5197, 5203, 5207, 5209, 5213, 5219, 5221, 5227, 5231, 5233, 5237, 5239, 5249, 5251, 5261, 5263, 5267, 5269, 5273, 5279, 5281, 5287])
test.assert_equals(Number_of_Primes(-4/13),"Invalid Input")
test.assert_equals(Number_of_Primes(137),[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 121, 127, 131, 137, 139, 143, 149, 151, 157, 163, 167, 169, 173, 179, 181, 187, 191, 193, 197, 199, 209, 211, 221, 223, 227, 229, 233, 239, 241, 247, 251, 253, 257, 263, 269, 271, 277, 281, 283, 289, 293, 299, 307, 311, 313, 317, 319, 323, 331, 337, 341, 347, 349, 353, 359, 361, 367, 373, 377, 379, 383, 389, 391, 397, 401, 403, 407, 409, 419, 421, 431, 433, 437, 439, 443, 449, 451, 457, 461, 463, 467, 473, 479, 481, 487, 491, 493, 499, 503, 509, 517, 521, 523, 527, 529, 533, 541, 547, 551, 557, 559, 563, 569, 571, 577, 583, 587])
test.assert_equals(Number_of_Primes(-1532),"Invalid Input")
test.assert_equals(Number_of_Primes(563.2356),"Invalid Input")
test.assert_equals(Number_of_Primes(343),[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 121, 127, 131, 137, 139, 143, 149, 151, 157, 163, 167, 169, 173, 179, 181, 187, 191, 193, 197, 199, 209, 211, 221, 223, 227, 229, 233, 239, 241, 247, 251, 253, 257, 263, 269, 271, 277, 281, 283, 289, 293, 299, 307, 311, 313, 317, 319, 323, 331, 337, 341, 347, 349, 353, 359, 361, 367, 373, 377, 379, 383, 389, 391, 397, 401, 403, 407, 409, 419, 421, 431, 433, 437, 439, 443, 449, 451, 457, 461, 463, 467, 473, 479, 481, 487, 491, 493, 499, 503, 509, 517, 521, 523, 527, 529, 533, 541, 547, 551, 557, 559, 563, 569, 571, 577, 583, 587, 589, 593, 599, 601, 607, 611, 613, 617, 619, 629, 631, 641, 643, 647, 649, 653, 659, 661, 667, 671, 673, 677, 683, 689, 691, 697, 701, 703, 709, 713, 719, 727, 731, 733, 737, 739, 743, 751, 757, 761, 767, 769, 773, 779, 781, 787, 793, 797, 799, 803, 809, 811, 817, 821, 823, 827, 829, 839, 841, 851, 853, 857, 859, 863, 869, 871, 877, 881, 883, 887, 893, 899, 901, 907, 911, 913, 919, 923, 929, 937, 941, 943, 947, 949, 953, 961, 967, 971, 977, 979, 983, 989, 991, 997, 1003, 1007, 1009, 1013, 1019, 1021, 1027, 1031, 1033, 1037, 1039, 1049, 1051, 1061, 1063, 1067, 1069, 1073, 1079, 1081, 1087, 1091, 1093, 1097, 1103, 1109, 1111, 1117, 1121, 1123, 1129, 1133, 1139, 1147, 1151, 1153, 1157, 1159, 1163, 1171, 1177, 1181, 1187, 1189, 1193, 1199, 1201, 1207, 1213, 1217, 1219, 1223, 1229, 1231, 1237, 1241, 1243, 1247, 1249, 1259, 1261, 1271, 1273, 1277, 1279, 1283, 1289, 1291, 1297, 1301, 1303, 1307, 1313, 1319, 1321, 1327, 1331, 1333, 1339, 1343, 1349, 1357, 1361, 1363, 1367, 1369, 1373, 1381, 1387, 1391, 1397, 1399, 1403, 1409, 1411, 1417, 1423, 1427, 1429, 1433, 1439, 1441, 1447, 1451, 1453, 1457, 1459, 1469, 1471, 1481, 1483, 1487])