Python Forum
Pairs of multiplied prime number--->N
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pairs of multiplied prime number--->N
#6
On the original code in your first post for the particular error
Error:
TypeError: 'NoneType' object cannot be interpreted as an integer
was because your function prime_eratosthenes had no return
to fix that error you would add return prime_list to the end of it
def prime_eratosthenes(lim):
    ...
    return prime_list
(Note I replace the rest of the code with ... just to show the important part not for you to do this to your code)
Reply


Messages In This Thread
Pairs of multiplied prime number--->N - by Frankduc - Jan-14-2022, 07:22 PM
RE: Pairs of multiplied prime number--->N - by Yoriz - Jan-14-2022, 08:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Star Pairs Trading Simulation Kiitoos 0 278 Feb-19-2024, 08:27 PM
Last Post: Kiitoos
  Prime number detector Mark17 5 903 Nov-27-2023, 12:53 PM
Last Post: deanhystad
  Sample random, unique string pairs from a list without repetitions walterwhite 1 522 Nov-19-2023, 10:07 PM
Last Post: deanhystad
  Extracting unique pairs from a data set based on another value rybina 2 2,364 Feb-12-2021, 08:36 AM
Last Post: rybina
  Is 2 a prime number? for loop & range fuction in python docs says yes, mine says no. allusernametaken 4 2,990 Nov-17-2019, 02:56 AM
Last Post: allusernametaken
  check if the number is a prime integer atlass218 5 3,032 Sep-26-2019, 07:58 AM
Last Post: atlass218
  Key value pairs assistance UtiliseIT 2 2,707 May-09-2019, 09:26 AM
Last Post: UtiliseIT
  Creating a program to look for the largest prime number of a number Wikki14 4 3,969 Sep-08-2018, 12:30 AM
Last Post: Skaperen
  Create random pairs Dennisp44 3 8,138 Jun-02-2018, 05:51 AM
Last Post: buran
  Unexpected result in simple prime number example jackhj 2 3,066 Apr-20-2018, 01:48 AM
Last Post: jackhj

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020